Using jQuery 1.6.4 in IE 11
I have an element with a slash in its id.
<span id='a/b'>
test
</span>
In my code I do
alert($('#a/b').length);
The output is 0. This only happens when I have a slash (/) in the ID. document.getElementById ('a / b') is working correctly.
So, I'm confused by why a slash id doesn't work in jQuery?
source
share