Skip to content

Article/Series Proposal: Working with Forms #566

@gnarf

Description

@gnarf

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions