Class handling functions

/ Published in: JavaScript
Save to your folder(s)

Standard hasClass, addClass, and removeClass functions.
- reworked so that jsLint is happy about them
- removeClass function trims things after removing a class name
- tests help to ensure that all common use-cases are covered

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.