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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -