-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Description
Many of the most popular stack overflow questions are currently about "how do I work with form elements" (is something checked? how to check on and off, etc)
It would be nice to write an article (or perhaps a section) about how to work with form elements.
Some tips to include:
.prop('disabled')
- what it actually does (remove from submission data, make un-interactive)$('form').on('submit')
instead of$('button[type=submit]').on('click')
- Working with checkboxes (is it checked, value, names, etc)
- Working with radios
- Working with selects (option vs select, .val() etc)
- Form specific events (change, focus, blur, key events, etc)