Is there anyway to automatically add a class to any HREF that is set to a hash (#)?
I am using an auto menu in Concrete5 so can't just hard code it in unfortunately.
I'm going to take a guess and say that it will be JavaScript/jQuery that will have to be used?
Thanks in advance!
Do like this,
Here in the above code we have used
attribute equals selector
.Try below code its easy
Demo here JSFiddle
Hope it helps...
You may try to use
Check the docs for options of attribute selector: