I am trying to select a span with specific text in jquery. Jquery "contains" is not very strict, so if I use it and search for "tab", it would also select "table", which I dont want.
$(".spanbox:contains('Tab')").css('background-color', 'Green')
The example-spans:
<span class="spanbox">Tab</span>
<span class="spanbox">Table</span>
Is there a way to exclusively select on of the classes members with a certain text?