I have some code that looks like the following coming back from an XHR response:
jQuery(':text:not(:hidden)').removeAttr("disabled");
This is a result of input fields being disabled after form submit. The XHR response returns this tidbit of jQuery and re-enables controls. Works great on every browser, even "partially" on FF 3.6.1 OSX. What I mean by partially is that some text fields have the disabled attribute removed, others do not. These text fields are verified not hidden.
Have a go using this instead:
jQuery('input:text:visible').each(function(){
this.disabled = false;
});
This uses the disabled
property of the element directly, rather than messing around with jQuery wrappers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With