How to check an element has particular css class or not. [js] if ($(‘#myElem’).hasClass(‘myClass’)) { alert(‘Has class’); } [/js]
I am Sibeesh Venu, an engineer by profession and writer by passion. Microsoft MVP, Author, Speaker, Content Creator, Youtuber, Programmer.