2011-06-15, 04:02:04
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);
}
});