jquery / jquery/api.jquery.com
Documentation about `trigger()` unclear about calling native event
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 325
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
Description
Does $('a#id77').click() open the link of <a>?
Reading https://api.jquery.com/trigger/, I am not sure if native event is called, but I guess so. But at least, it does not.
There is also a stackexchange discussion: https://stackoverflow.com/questions/5811122/how-to-trigger-a-click-on-a-link-using-jquery
Please update the documentation to clearly mention if native events are triggered. And if necessary, fix any bug.
Link to test case
The link is not shown when doing a jquery click:
https://jsbin.com/jifulaweqa/1/edit?html,js,output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documentation for trigger() at api.jquery.com/trigger/ and reproduce the reported behavior using the linked JS Bin test case. Compare the documented behavior with the Stack Exchange discussion and determine what the documentation should state about native events. Done means the documentation clearly explains whether native events are triggered and identifies any separate bug for follow-up.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jquery
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100