Hi,
I want to get all classes of the element using jquery.
My code as follows:
<span> <input title="Submit your data" name="elementName" id="elementID" onclick="return element_click(this);" type="submit" value="" class="btn btn-primary TestClass"> </span>
Please give me the solution to achieve this task.
Hemant Patel
15-Mar-2018Hi Ethan,
You can get all classes of the element by using the following line of code:
I hope it's informative!!!