Skip to content

Tag: submit

Adding POST parameters after form submit

I have this form: And I’d like to add a few json arrays to POST in validateForm() after validation, so that when validateForm() returns true, the updated POST will be sent to course_submit.php. What’s the best wya to go about this? Thanks! Answer Have <input type=”hidden” …&gt…

JavaScript submit form excluding fields

I have a simple html form: And I need to submit it with JavaScript, but I want to exclude the dontSubmitThisField field from the request. Is there a way of doing that without Ajax? Answer Just disable the field. Either do it via HTML if the field cannot be updated by the user: http://www.w3schools.com/tags/at…

form submit jquery v javascript difference

in javascript this works fine and the validateForm function fires but why doesnt a similar implementation of the same code in jquery not work? This is what I would like to do after reading http://api.jquery.com/submit/ the following code works why does the submit method require a function to wrap around the c…

“Submit is not a function” error in JavaScript

Can anyone tell me what is going wrong with this code? I tried to submit a form with JavaScript, but an error “.submit is not a function” shown. See below for more details of the code: I also tried this: Both show me the same error 🙁 Answer submit is not a function means that you named your submit…