satia
13 Jan 2013, 09:20 PM
HI,
I need some help on my jquery. I need to make the menu bar stay put. This is my coding below:
Can anyone help pls.
$(document).ready(function(){
$('li.button a').click(function(e){
/* Finding the drop down list that corresponds to the current section: */
var dropDown = $(this).parent().next();
/* Closing all other drop down sections, except the current one */
$('.dropdown').not(dropDown).slideUp('slow');
dropDown.slideToggle('slow');
/* Preventing the default event (which would be to navigate the browser to the link's address) */
e.preventDefault();
})
});
Regards
Satia
I need some help on my jquery. I need to make the menu bar stay put. This is my coding below:
Can anyone help pls.
$(document).ready(function(){
$('li.button a').click(function(e){
/* Finding the drop down list that corresponds to the current section: */
var dropDown = $(this).parent().next();
/* Closing all other drop down sections, except the current one */
$('.dropdown').not(dropDown).slideUp('slow');
dropDown.slideToggle('slow');
/* Preventing the default event (which would be to navigate the browser to the link's address) */
e.preventDefault();
})
});
Regards
Satia