I am trying to add a class to a bold element only if the bold element does not already have the class specified. Can someone please tell me what I am missing. It stops running after it finds one that fails instead of checking each.
if ($("font[size='3'] b").hasClass('dont_run')) {}
else {$("font[size='3'] b").addClass('barcode_needed')
};
Using the
:notselector will achieve this easily.