I have a dynamic form that creates drop downs and increments the names correctly. What i need to do is hide a text box if the user selects a certain dropdown value. This i can do, but what i need help on is hiding the right thing as the names are incremental.
$("select[id^=Profession]").change(function() {
if(jQuery(this).find("option:selected").val() == "2") {
jQuery("#ADA_1").hide();
} else {
jQuery("#ADA_1").show();
}; });
Working Sample: jsfiddle