Revision: 22770
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 21, 2010 14:23 by landonmiller
Initial Code
//If div option "Selected Text" is selected, display test. $("#div").change(function() { if (($("option:selected", $(this)).attr("value")=="Selected Text")) { $("#div2:hidden").show(); $('#div2').addClass('inputclass pageRequired'); } else { $('#div2').removeClass('inputclass pageRequired'); $('#div2').removeClass('warning'); $("#div2:visible").hide(); } });
Initial URL
Initial Description
Initial Title
Display hidden textfield if option is selected
Initial Tags
forms, jquery
Initial Language
jQuery