$(\'a[xlink\\\\:href=#coastline]\').attr(\'class\',\'grey\');
$(\'a[xlink\\\\:href=#onshore]\').attr(\'class\',\'blue-light\');
This is what I currentl
From your comment i'm thinking that you have smth like
Link text here
So, to change it's color you can try to change it's fill
attribute like
$('a[xlink\\:href=#coastline]').attr('fill','#ff00ff');