rayfidelity,
The form plugin lets you do whatever you need to do with the result. What type of response are you getting and what do you want to do with it? The success handler you pointed out is passed the response value, and you can use it any way you wish. For example: success: function(response) { if (response == "ok") // <-- check whatever you need here $('#mySubmit')[0].disabled = true; } Mike On 7/2/07, rayfidelity <[EMAIL PROTECTED]> wrote:
Hi, I have a question about the form plugin. I'd like to reuse the data, that's returned from the submited form. The form posts to the process.php, and the the process.php returns the msg. In stead of just displaying the returned data i'd like to check what it is. Why? Because i'm validating the data in tje process.php file and if the submit is successfully i'd like to disable the submit button so that resubmit cannot happen. I don't know how to do that. the form plugin has just the option for displaying the result...but how to reuse the result? success: function(){ $("#msg-container"); }