I just noticed that a disabled input text field is not picked up in a selector when it is disabled. Is there a way to say select inputs disabled or not…
<input type="text" name="MYNAME" id="preXXXX" disabled='disabled' value="my Value" />
$.each($('input[id^="pre"], select[id^="pre"]').serializeArray(), function() {
A disabled input field is picked up in a selector, however it is not included when the form is serialized (
serializeArray()), as it is not a “successful control”. This behaviour is documented in the jQuery docs.