Autohide Text Box When A Particular Option Is Selected From Combo
I have one combo box which displays a text box when 2nd or 3rd option is selected, but how to hide that text box when first option is selected? $('#combo').change(function () {
Solution 1:
Do you really need server side? Here an example without:
$("#combo").change(function () {
if (this.value != '_') {
$("#textbox").empty().append("<input type='text' id='text1'/>");
}
else {
$("#textbox").hide();
}
});
Also see this example.
But if really need server side, you have to set isTrue
conditionally.
Solution 2:
following is the code to hide
$('#textbox').hide();
Post a Comment for "Autohide Text Box When A Particular Option Is Selected From Combo"