Does anyone know how to select an item in the DOM by ID with jQuery, when that ID has a space?
For example, the id of my item would be
<div id="content Module">Stuff</div>
How would I select this with jQuery?
If I just do
$("#content Module").whatever()
jQuery will try to find an item with both the id of content and the id of Module, which is not what I am looking for.
I should add that I am working with an old code base where these two word ids are used extensively, so going through and changing all the ids would be bad.
However, as mentioned in the comments of the selected answer, I can just truncate anything after (and including) a space on display, this has solved the problem.
Thanks.