Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Returns true if the parent element contains div.nav_level2
- jQuery.expr[":"].subnav = function(obj){
- return jQuery(obj).parent().find("div.nav_level2").length;
- };
- // Using it
- $("nav li>a:subnav").click(function(ev){});
- $("nav li>a").not(":subnav").css("background-image", "none");
Add Comment
Please, Sign In to add comment