selectors with ^ giving error :(
hi
im using this code to add a class to the mailto link
-
$('a[@href^="mailto:"]').addClass('mailto');
but in firebug im getting this error:
[Exception... "'Syntax error, unrecognized expression: [@href^="mailto:"]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
Line 0
why??
thanks