Sorry, I did look for the answer before posting. But I couldn't find what I was looking for.
I am trying to use jQuery UI's tag-it widget. I'm trying to apply the .tagit()
method to an element as follows:
jQuery("#myTags:.5aedf589").tagit();
The actual element on the page to which I'm trying to apply the tagit()
method is this:
<ul id="myTags:.5aedf589">
That should be a legal id name, but just in case I also tried it with just "#myTags"
and have the same problem.
I am using jQuery instead of the $ alias because my script contains both Prototype and jQuery. jQuery is loaded first, and from the docs it says I should be able to use jQuery instead of $
even without using noConflict()
. I did try using noConflict too, but it didn't help.
The problem is that the above jQuery expression results in the following JavaScript error:
Syntax error, unrecognized expression: "#myTags:.5aedf589"