Skip to content Skip to sidebar Skip to footer

Html Select Option Control When Disabled Is Not Submitted With The Form

I have the following HTML code. I need to gray out this control depending on the selection in another client-side control. I do it like so using jQuery: $('#dropDown1').attr('disab

Solution 1:

Yes, enable it upon submit. Since you're submitting the user will not have time to change anything.

Alternately to can copy the value to a hidden field.

Solution 2:

here's a code example showing you how to remove the disabled property before submitting the form

http://jsfiddle.net/manuel/dy9Zc/

actually the trick is to just remove the attr on the submit event of the form

Post a Comment for "Html Select Option Control When Disabled Is Not Submitted With The Form"