2011-06-15, 04:54:42
So this is used in conjunction with the get_navigation() template tag?
mvlcek Wrote:rbboyl Wrote:The dropdown menu uses jquery to give it a sliding/fading effect. I was able to nest the list and still have the menu work.
My revised question is how to add the rel="ddsubmenu1" attribute to the main links that have sub-menu items if GetSmple is generating the menu?
Supposing the uppermost ul has id menu, you should be able to do it with something like this:
Code:$(function() {
$('#menu li ul').each(i,ul) {
$(ul).attr('id','ddsubmenu'+i);
$(ul).closest('li').find('a:first').attr('rel','ddsubmenu'+i);
}
});