Reputation: 9714
I need to be able to check the following:
$(".main-menu a")
For a specific href
attribute and then addClass
Upvotes: 0
Views: 5511
Reputation: 318372
$(".main-menu a[href='http://somesite.com']").addClass('someClass');
Upvotes: 6