Advertisement
AndreasFurster

Untitled

Jun 25th, 2014
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.11 KB | None | 0 0
  1. jQuery.fn.addClassIf = function (condition, className) {
  2.     if (condition) {
  3.         this.addClass(className);
  4.     }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement