您好我的jquery accordeon样式菜单记住重新加载或加载页面后的状态...
我有这个代码用于产品菜单,但不知道如何做...任何帮助?感谢
""<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; ?>""
这是javascript代码
$(function(){
$('#categorias ul ul').hide();
$('#categorias a').click(function(){
$(this).next().slideToggle('fast');
return true;
});
});