Keep submit buttons from submitting twice

Jquery One function works nicely for limiting a bind event to only one time.

Just be sure to re-bind it ONE time when the server sends back an error when validating the form inputs.

$objResponse->script(" $('#submit_edit_prod_personalization_form').button().one('click',function() { xajax_update_prod_personalization(xajax.getFormValues('edit_prod_personalization_form')); });");

This entry was posted in Uncategorized. Bookmark the permalink.