Reputation: 327
I have set up a javascript form and I thought that it was going to allow me to continuously change the data in the form (without reloading) and then continuously re-submit, running the same javascript.
The structure of the form works as it runs through the javascript the first time, but now after that submission.
Here's the snipped structure:
<form name="items">
... form inputs...
<INPUT TYPE="button" NAME="button2" Value="Update Cart" onClick="total(this.form)">
This runs a javascript function, which works. Is this type of form set up not what I should do?
Upvotes: 0
Views: 181
Reputation: 14565
if you want to post the form multiple times without reloading the page - you are going to need to use ajax to post the form, or jquery's $.post() if you are using jquery.
Upvotes: 1