Guest User

Untitled

a guest
Oct 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // Returns true if the parent element contains div.nav_level2
  2. jQuery.expr[":"].subnav = function(obj){
  3. return jQuery(obj).parent().find("div.nav_level2").length;
  4. };
  5.  
  6. // Using it
  7.  
  8. $("nav li>a:subnav").click(function(ev){});
  9.  
  10. $("nav li>a").not(":subnav").css("background-image", "none");
Add Comment
Please, Sign In to add comment