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
Post a Comment