I’m a bit new to JavaScript and I’m hitting a brick wall with this bit here.
I have a jsTree built with unique IDs based on filenames. For example,
<a id="node_:Folder4" href="#">Folder4</a>
Running a selector for
$("#node_:Folder4")
is returning [ ]. Here’s a picture of the exact issue I’m seeing. Any thoughts?
You need to escape the colon:
http://jsfiddle.net/MZA3b/1/
Not sure why, but I found this document here that says
http://www.w3.org/TR/REC-html40/types.html#type-name
I’m probably looking at deprecated document, but yes, try to avoid using special characters on attributes values