jquery / jquery/learn.jquery.com

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.

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

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.