Skip to main content

Bug Tracker

Side navigation

#2068 closed bug (worksforme)

Opened December 17, 2007 12:50PM UTC

Closed December 17, 2007 02:40PM UTC

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>
Attachments (0)
Change History (1)

Changed December 17, 2007 02:40PM UTC by brandon comment:1

resolution: → worksforme
status: newclosed

Selectors with special characters in them must be escaped. You can find more info at this FAQ: