How to create a jQuery function to pull the menu up?

0

IwouldliketousejQuerytoraiseandlowerthismenu.Canyouhelpme?Theendresultshouldbethis...IstartedthecodebutIdonotknowhowtocontinue.

$("#esconder_menu").on("click", function(){
     // #header-main <---- esse é o id do menu a subir.
});

    
asked by anonymous 22.01.2015 / 01:29

1 answer

4

You did not give too many details, but if you're just missing the animation of collecting the menu, slideUp() should resolve :

$("#esconder_menu").on("click", function(){
     $('#header-main').slideUp();
});
    
22.01.2015 / 01:39