Users Pricing

forum

Home Forums How to get all classes of element using jquery? – MindStick

How to get all classes of element using jquery?

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


1 Answers

Hemant Patel 15 Mar 2018 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md