To get the class of an element using jQuery you can use the snippet below.
var className = $('.myId').attr('class');
All the Code Snippets and Samples you need
To get the class of an element using jQuery you can use the snippet below.
var className = $('.myId').attr('class');
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to get the class of an element using #jQuery http://t.co/TdzOsVf2wV #html5 #html #csss #css3 #php #js #javascript …
RT @CodeSnippetsNET: How to get the class of an element using #jQuery http://t.co/TdzOsVf2wV #html5 #html #csss #css3 #php #js #javascript …
RT @CodeSnippetsNET: How to get the class of an element using #jQuery http://t.co/TdzOsVf2wV #html5 #html #csss #css3 #php #js #javascript …
RT @CodeSnippetsNET: How to get the class of an element using #jQuery http://t.co/TdzOsVf2wV #html5 #html #csss #css3 #php #js #javascript …
RT @CodeSnippetsNET: How to get the class of an element using #jQuery http://t.co/TdzOsVf2wV #html5 #html #csss #css3 #php #js #javascript …