Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have dropdown dd1,dd2,dd3,dd4

here my dd1 selected text is 'widow' then only dd2 dropdown must showed
how to do this in Jquery please some one help me i not much familiar in jquery

Thanks
Posted

write a function on dd1 is onselected="name();"

And in that function show the dd2 using show();
And on page load hide the dd2 using hide();
 
Share this answer
 
$('#dd1').change(function(){
var value = $(this).val();

if (value == "window"){
$('#dd2').show();
}
else {
$('#dd2').hide();
}
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900