How to target an HTML element based on its title tag?
let's say we have:
<a class="cat" title="categoryName">categoryName</a>
How to target this anchor element using its title tag then append some text to it.
I tried this but it doesn't work:
$(".cat['title' = *categoryName*]").append('*someText*');
also tried this but it doesn't work:
$(".cat['title' ~= *categoryName*]").append('*someText*');
<a>prematurely?categoryName?$('.cat[title = "categoryName"]').append('*someText*');