I've got this code in jquery
$('.candidate-single:has(p:contains("Norfolk"))').addClass('is-hidden');
In place of where it says Norfolk I want to use a variable but can't seem to get it to work. I take it i need to escape the string somehow but can't quite work out how.
Thank you!