You can use jQuery's .hasClass()
method to check if any tag inside a container has a class named 'radio-button-box'
. Here's an example code snippet:
index.tsx391 chars10 lines
In this example, replace #container
with a selector for the container element that you want to check. The code will search for any element inside the container that has the class 'radio-button-box'
, and log a message to the console to indicate whether one was found or not.
gistlibby LogSnag