jquery / jquery/learn.jquery.com

Article/Series Proposal: Working with Forms

Open
#566 1 comment 0 reactions 1 assignee View on GitHub

@arthurvr is already working on this.

Since Apr 1, 2015.

Chapter: events Chapter: jquery-core content help wanted
Dominant language
JavaScript
Stars
915
Forks
471
PR merge metrics
No merged PRs in 30d

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.