/ Published in: jQuery
Expand |
Embed | Plain Text
$(document).ready(function(){ // Меню $('.menu li').toggle(function() { $(this).find('ul').fadeIn('200'); }, function() { $(this).find('ul').fadeOut('200'); }); // переход по ссылке приклике $('.menu li ul li').click(function(){ window.location=$(this).find("a").attr("href"); return false; }) })
Comments
Subscribe to comments
You need to login to post a comment.

Нашел полезные вещи для обращения к атребутам здесь http://anton.shevchuk.name/javascript/jquery-for-beginners/