|
my function only fires once, why?
alright so im a noob to js (so if my jargon isn't quite right I apologize).
I wrote this program:
[CODE]
function drown() {
$('#nav li a').mouseover(
function() {
$('#nav li ul').show();
});
$('#nav li a').mouseout(
function() {
$('#nav li ul a').hide();
});
};
[CODE]
which is for a drop down navigation menu. Its real basic, but its my first program from scratch. the only problem is that it only fires once, meaning when i mouse over the parent li it only "drops down" the child ul and "brings it up" only one time. The subsequent times I mouse over nothing occurs.
I have spent hours reading forums and books but I'm still lost. If you need the html or css documents let me know.
|