Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.fn.addClassIf = function (condition, className) {
- if (condition) {
- this.addClass(className);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement