/ Published in: jQuery
Expand |
Embed | Plain Text
jQuery.fn.log = function(msg){ console.log("%s: %o", msg, this); return this; }; $(document).ready(function(){ var listeProd = $("#nav>li>a"); // selectionner le fils direct listeProd.hover(function(e){ listeProd.each(function(){ $(this).removeClass('current'); $(this).next().css("display", "none"); }) $(this).addClass('current'); $(this).next().css("display", "block"); }) });
You need to login to post a comment.
