Skip to main content

Timeline for jQuery AJAX submit form

Current License: CC BY-SA 4.0

21 events
when toggle format what by license comment
Jan 17, 2023 at 10:38 comment added MythThrazz It's worth noting that it won't serialize the "submit" field too eg. <input type="submit" name="wont-be-serialized" value="Sadly" />
Sep 8, 2022 at 11:50 comment added Fakipo Do we need to have a action attribute in the form?
Jan 6, 2022 at 12:01 history edited Kamlesh CC BY-SA 4.0
Corrected indentation and changed variable name from `url` to `actionUrl` so that other users are not confused. Thanks.
Oct 26, 2021 at 11:31 comment added HeroZero I found this answer while looking for the same solution and it looks like form.serializeArray() is another good option to look into. api.jquery.com/serializeArray/#serializeArray
Jul 11, 2020 at 21:52 history edited Jean-François Fabre CC BY-SA 4.0
deleted 20 characters in body
Apr 10, 2020 at 7:21 review Suggested edits
Apr 10, 2020 at 11:34
S Mar 2, 2019 at 17:30 history suggested CommunityBot CC BY-SA 4.0
preventDefault should be the first command to be run.
Dec 29, 2018 at 16:48 review Suggested edits
S Mar 2, 2019 at 17:30
Jul 26, 2018 at 12:12 history edited user753676 CC BY-SA 4.0
added 15 characters in body
Mar 21, 2018 at 1:23 review Suggested edits
Mar 21, 2018 at 4:14
Jun 10, 2016 at 10:37 review Suggested edits
Jun 10, 2016 at 11:44
Oct 27, 2015 at 3:21 history edited Pavel Chuchuva CC BY-SA 3.0
Replaced return false with e.preventDefault()
Feb 5, 2015 at 2:22 comment added Papa De Beau can the url called come from an "http" or does it have to be local? your example: var url = "path/to/your/script.php";
Apr 19, 2014 at 8:01 review Suggested edits
Apr 19, 2014 at 8:04
Feb 7, 2014 at 13:48 review Suggested edits
Feb 7, 2014 at 13:48
S Dec 3, 2013 at 10:24 history suggested Wilq CC BY-SA 3.0
proper comment and id of the example form instead of button
Dec 3, 2013 at 10:21 review Suggested edits
S Dec 3, 2013 at 10:24
Nov 2, 2013 at 5:41 history edited akuhn CC BY-SA 3.0
Changed click to submit, as suggested by @renato
Jan 19, 2013 at 19:25 comment added macio.Jun But form.serialize() can't post <input type="file"> in IE
Dec 10, 2012 at 9:52 review Suggested edits
Dec 10, 2012 at 9:58
Aug 5, 2011 at 17:57 history answered Alfrekjv CC BY-SA 3.0