Bug Tracker

Opened 15 years ago

Closed 15 years ago

#2068 closed bug (worksforme)

JQuery can't manipulate elements with '$' in ID

Reported by: tIT Owned by:
Priority: critical Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:



<script type="text/javascript">
$(document).ready(function () {
    alert($('#some_$ROOT')); // alerts Object
    $('#some_$ROOT').html('Yo!'); // does nothing
<div id="some_$ROOT"></div>}}}

Change History (1)

comment:1 Changed 15 years ago by brandon

Resolution: worksforme
Status: newclosed

Selectors with special characters in them must be escaped. You can find more info at this FAQ: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F

Note: See TracTickets for help on using tickets.