$(document).ready(function() { $("select").change(function() { $(this).find("option:selected").each(function() { if ($(this).attr("value") == "class") { $(".box").not(".class_name").hide(); $(".class_name").show(); $(".box").not(".class_name").val(""); } else if ($(this).attr("value") == "ref") { $(".box").not(".ref_id").hide(); $(".ref_id").show(); $(".box").not(".ref_id").val(""); } else { $(".box").hide(); } }); }).change(); });
Select Page
   
      
Parent Information
Parent Name
E-mail
Student Information
Student Name
Grade
Select Students Tuition Amount