var hasClass = function(element,className) { return (function() { var classes = element.className.split(' '); for(var i in classes) { if(classes[i] == className) { return true; } } return false; })(); }
Monday, March 8, 2010
Check class
In case if you have to use pure Javascript:
Labels:
javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.