Skip to content Skip to sidebar Skip to footer

If Statement Syntax Using 'this' In Jquery

I have the following:
&l

Solution 1:

it should be

if($(this).is(":contains(OK)")) {

Solution 2:

You can use filter

if($(this).filter(':contains("OK")').length ) {

Check Fiddle

Post a Comment for "If Statement Syntax Using 'this' In Jquery"