Why is it that using variable within :contains() doesn't work? Is there any way to make it work? filter('contains()') didn't work either.
<h2>Test</h2>
<div>Test</div>
var model = $('h2').text();
//variable doesn't work
$('div:contains(model)').css('background','yellow');
//obviously, string works
$('div:contains("Test")').css('background','yellow');
$('div:contains('+$modele+')').css('background','yellow');