Possible Duplicate:
How to select html nodes by ID with jquery when the id contains a dot?
I have a website that contains elements similar to this:
<p id="root.SomeCoolThing">Some Cool Thing</p>
I can not select the paragraph with jQuery like $('#root.SomeCoolThing')
because jQuery thinks, SomeCoolThing
is the class of an element with id="root"
.
How can I select this element with jQuery? I would like to avoid a construction like this:
$(document.getElementById('root.SomeCoolThing'))