Modify ↓
Ticket #3456 (closed bug: wontfix)
jquery does not recognise ids with forward slash in attribute
| Reported by: | tyler45 | Owned by: | flesler |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | unfiled | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
setting up a clickable calendar with dates in 12/10/2008 format, e.g.
<td id="12/10/2008">12</td>
var date = 12/10/2008;
$('#' + date) does not select the id.
document.getElementById(date) does work
Change History
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.

Slashes are not a valid part of ids.
http://www.w3.org/TR/html4/types.html#type-id