There is a code:
function submenu(){ var link = $('.menu li'); link.hover(function () { if($(this).find('ul').length > 0){ var submenu = $($(this).find('ul')[0]); open(submenu); } }, function () { close(submenu); //не видит submenu } ); function open(item) { $(item).slideDown().addClass('active'); } function close(item) { $(item).slideUp().removeClass('active'); }} How to make visible submenu? If you remove the var and make global - not good.
var link- Grundy