$('.test').css('background','red');
<div id="example">Some text</div>
How can I .addClass('test')
if #example
contains the word "text"?
$('.test').css('background','red');
<div id="example">Some text</div>
How can I .addClass('test')
if #example
contains the word "text"?