I have a pretty complex form that provides real time validation and feedback to the user using it as they type in data. Parts of the form may be disabled due to form "business logic" of the inputs, but the server side needs to know the value of these disabled inputs to do some of its checking in the AJAX requests.
I was using JQuery to serialize the entire form $(form).serialize() and sending all of this data to the server during my AJAX requests, but this serialized data will be missing any inputs that are disabled. So what is the best way to include all of the form data (even disabled inputs) with each AJAX request?
My current thought is to attach a function to ajaxStart( callback ) that would create a client side hash-map of all form inputs' disabled attribute, enable all the inputs, serialize, and then set each form's disabled attribute back to its original value. But this seems overly complex and I wanted something simpler that wouldn't be as brittle.