proplem with jquery code when i add a selector
hello
i have a proplem with this code when i add my selector #nav
$(function() {
$
("#nav ul > li").hover(function() {
$
(this).find("ul").stop(true, true).fadeIn('fast');
}, function() {
$
(this).find("ul").stop(true, true).fadeOut('fast');
});
});
but
when i remove my selector #nav it's work
$(function() {
$
("ul > li").hover(function() {
$
(this).find("ul").stop(true, true).fadeIn('fast');
}, function() {
$
(this).find("ul").stop(true, true).fadeOut('fast');
});
});
some help please