I\'m currently attempting to disable a link using the following jQuery selector:
$(\"a[href$=/sites/abcd/sectors]\").removeAttr(\"href\");
First this is NOT VALID expression since it contains \ ,
If you wish to use any of the meta-characters ( such as !"#$%&'()*+,./:;<=>?@[\]^``{|}~ ) as
a literal part of a name, you must escape the character with two backslashes: \\.
Src : http://api.jquery.com/category/selectors/
so you must escape the / to \\/
so your expression will be $("a[href$=\\/sites\\/abcd\\/sectors]").removeAttr("href");