Users Pricing

forum

home / developersection / forums / how to get all classes of element using jquery?

How to get all classes of element using jquery?

Anonymous User 1371 15 Mar 2018

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.


I am a content writter !


1 Answers

Hemant Patel 15 Mar 2018 Accepted Answer