Hi I would like to make to my jquery accordeon style menu remember the state after reload or load a page...
I have this code working for products menu but and no idea about how to doing... Any help? Thanks
""<div id="categorias">
   <?php $result2 = mysql_query("SELECT * FROM tbsubcategory WHERE cat_id = '".$row['cat_id']."' ORDER BY tbsubcategory.order ASC"); ?>
   <ul><?php while ($row2 = mysql_fetch_array($result2)): ?><li><a href="<?php echo $GB_RUTA_BASE; ?>/catalogo/ver/<?php echo $row2['subcat_id']; ?>/<?php echo url_amigables($row2['subcat_name_es']); ?>"><?php echo $row2['subcat_name_es']?></a></li>
  <?php endwhile; ?></ul></ul><?php endwhile; ?>""
And this is the javascript code
        $(function(){
            $('#categorias ul ul').hide();
            $('#categorias a').click(function(){
                $(this).next().slideToggle('fast');
                return true;
            });
        });
