Hi everyone,
i am building a site for a friend, that should have a horizontal navigation.
I tried to solve it like this, but I didn´t manage to get the jquery-code right, does anyone have an idea?
function initVatto() {
var l =  $("#menu ul").length;
for ( var i = 0; i <= l; i++ ) {
item_title = $("#menu ul").eq(i).children(":first");
items = $("#menu ul").eq(i).children().filter(function (index) { return index > 0; });
items.hide();
item_title.css({cursor:"pointer"}).click( function(){
$("#subMenu").empty();
$("#subMenu").append(items);
}); 
}
}
thanks for help!!