How to make drop-down menu not close when changing pages ?
Hi everyone. I'm using jquery to make a drop-down menu on a website i'm wotking on. I'm currently using the following code, and it's all working allright:
- $(document).ready(function(){
- $(".btn_slide").click(function(){
- $("#sub_categories").slideToggle("slow");
- $(this).toggleClass("active"); return false;
- });
- });
Inside of this slider menu, i have 4 more options all of them using the same type of slider code.
The thing is, when i click on one of the options from the drop-down menu, it changes to another page, and the menu closes. How can i make the menu stay open ?
Every div that is used with the sliders have the following css property:
- #sub_categories, #tresde, #arquitectura, #design, #web{
- display: none;
- }
I think the problem might be here, is there any way i can solve this ?