Jquery Hide with two drop down selects -


i have 2 drop down selects. 1 called disciplines, other called menslevels both share same id based on value of first select, how hide second select? here code:

    $("select[name=disciplines]").change(function() {         if ($(this).val() == 'acro') {                 var pid = $(this).attr('id');                 $('td:nth-child(6).attr("id") == "' + pid + '"').hide();              }     }); 

$("select[name=disciplines]").change(function () {     if ($(this).val() == 'acro') {         $('select[name=menslevels][id="' + this.id + '"]').hide();     } }); 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -