I am attempting to determine if a div has a class with a certain name, then do something if it does:
if ($('div[class*="onetime"]').length > 0)
alert("one time shipping mode");
except the alert is firing no matter what.
What is the actual correct way to perform an action based on if a div contains an attribute with a certain phrase?