event-basics.md - replace deprecated methods like .click()

Open Beginner friendly
#828 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript, jquery
Domain
documentation

Research direction

Start with event-basics.md and locate the deprecated .click(), .focus(), blur(), and .change() shorthand methods. Update the examples to use the proposed event-binding approach, then review the rendered page for consistency. Done means the listed deprecated methods are removed from this page; searching other pages can establish whether the scope should expand.

Written by the indexing model from the issue text.

Description

Problem

The event-basics.md page still uses the deprecated .click(), .focus(), blur() and .change() shorthand methods.

Proposal

These methods can be updated to use .on("click") for consistency with jQuery 3.0+.
If this approach is accepted, I can submit a pull request.

There may be other pages with the same issue.

Dominant language
JavaScript
Stars
915
Forks
471
PR merge metrics
No merged PRs in 30d

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.

More from jquery/learn.jquery.com

All issues in jquery/learn.jquery.com

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.