Hiding certain SELECT dropdown in JQuery -
i have page approx 10 select dropdowns. 3 of these dropdowns hidden default onload, depending on users status.
now, if user specific, these 7 dropdowns hidden , depending on users input, these dropdown visible.
i show , hide these dropdowns using jquery.
jquery("select").hide() jquery("select").show()
currently, when select dropdowns shown, selects visibile. have run code hide 3 default ones.
what jquery hide visible select dropdowns (the 7 visible ones) , show these 7 ones (leaving 3 defaulted hidden 1 hidden).
is possible using jquery, shows , hides select dropdowns style visibility visible?not sure?
many thanks
solution assign these selects special class , use class show , hide:
$(".myspecialselectclass").hide(); $(".myspecialselectclass").show();
you need make sure class assigned selects.
Comments
Post a Comment