18
rated 0 times
[
20]
[
2]
/ answers: 1 / hits: 40150
/ 13 Years ago, thu, july 28, 2011, 12:00:00
How do I determine if the .attr('class')
exists?
I am using this code:
if(jQuery(this).attr('class') != undefined && jQuery(this).hasClass('myclass')) {
//Do something
}
It doesn't seem to work.
More From » jquery