I'm trying to create an xml string from all of my form inputs, it works only if the form is enabled. how can i create the xml when all of the form inputs are disabled?
Thank's In Advan开发者_JS百科ce.
Disabled form controls are not submitted when the form is submitted. You could do this:
- Create a submit handler for the form.
- Inside the submit handler, create a clone of the form.
- Un-disable all of the form controls in the clone.
- AJAX submit using the serialized data from the clone.
- When the AJAX call returns, load whatever page you would have loaded in the originial submit.
Don't forget to return false at the end of the submit handler.
精彩评论