Guest User

Untitled

a guest
Jan 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2. $.fn.markParents = function(selector, className){
  3.  
  4. var children = $(this).find(selector);
  5. if(children.length != 0 ){
  6. if( className )
  7. $(this).addClass(class);
  8.  
  9. return true;
  10. }else
  11. return false;
  12.  
  13.  
  14. }
Add Comment
Please, Sign In to add comment