jquery - show/hide checkbox based on select option value -


How to show / hide a checkbox based on the selection option value? I want to show a check box on the basis of a single value in the chosen option and when it is chosen another value, then hide it. I'm trying to jquery solution

  $ ('# abcselect'). Change (function () {$ ('# unknownness'). Toggle ($ (this) .val () = = 'first')});   $ (document) .ready (function () {$ (" Select "). Change (function () {$ (" #Foo ") Toggle ($ (this) .val () ==" something "))}}. Change (); // if the first option is selected on page load}};  

Try it out:

Also, see and


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -