#301 lesson: getting all form data
- Status
- New
- Priority
- Normal
- Assigned to
- Volkan Ozcelik
- Category
- Lessons
- Version
- None
You can easily grab all HTML form data like this:
var data = new FormData(document.querySelector('form'));
This gives you key/value pairs that are ready for an AJAX call. Handy for those doing plain JS and HTML apps.
History
| 29 Aug 2018, 18:32 | Volkan Ozcelik submitted the bug |