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 -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -