Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I hide dropdownlist based on jQuery multiselect checkbox selection?
Posted

1 solution

you can hide dropdowns using jquery
...
$(document).ready(function(){

$("#your multiselect element id").find(":checkbox").click(function(){
//if in your multiselect name value is checked
if($(this).prop("checked") && $(this).val() =" your conditional value")
{
$("#yourdropdownid").show();
}
//if in your multiselect name value is unchecked
esle
{
$("#yourdropdownid").hide();
}

});
});
 
Share this answer
 
v3
Comments
Navi.jsp 8-Oct-14 2:23am    
Hi how about unchecking the check box from jquery multiselect option , it will hide the jquery multiselect dropdownlist
rajeevcse04 8-Oct-14 2:25am    
Please elaborate it
Navi.jsp 8-Oct-14 3:06am    
for example inside my jquery multiselect i have a value called name, when I checked it another dropdowon appear, when I unchecked it , the another dropdown will be hidden.
rajeevcse04 8-Oct-14 3:14am    
the solution i have given that should work with your scenario or else post your code so we can help you
Navi.jsp 8-Oct-14 3:20am    
like if you unchecked and check again the dropdown should appear. my jquery have something like this $('#dropdown').multiSelect();

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