Modify ↓
Ticket #8503 (closed bug: fixed)
Missing apostrophes in the documentation
| Reported by: | info@… | Owned by: | info@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | unfiled | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hey there! I've noticed a bug in the documentation. You wrote the following: $(document).ready(function() {
$("a[href*=/content/gallery]").click(function() {
do something with all links that point somewhere to /content/gallery
});
});
But the link has to be in apostrophes: "a[href*='/content/gallery']" elsewise the effect won't work on the link. Please fix it :)
Change History
comment:2 Changed 2 years ago by addyosmani
- Priority changed from undecided to low
- Status changed from pending to closed
- Resolution set to fixed
Found and corrected this issue here: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Find_me:_Using_selectors_and_events
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Can you post a link to the page where you see this problem?