forum

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

How to get all classes of element using jquery?

Anonymous User 1291 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.


Updated on 15-Mar-2018

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By