How can I select all elements with the class .Tag that are not equal to the element passed to the function?
Here is my current attempt:
$("a.tag").filter(":visible").not("\"[id='" + aTagID + "']\"").each(
function place(index, element) {
log(" checking element " + element.id);
});
The variable aTagID holds the ID of the calling element that should be excluded from the selection. The log function simply logs messages to the console.
However, when I run this code, I encounter the following error in the console:
Uncaught Error: Syntax error, unrecognized expression: "[id='t1']"