Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.markParents = function(selector, className){
- var children = $(this).find(selector);
- if(children.length != 0 ){
- if( className )
- $(this).addClass(class);
- return true;
- }else
- return false;
- }
Add Comment
Please, Sign In to add comment