AutoCollapse SubMenuItems

AutoCollapse SubMenuItems

  

Hello,


I would like to auto collapse the submenu items of a Menu. (on page load)

is it possible? And how can I Achieve this?

Niels Favreau wrote:

Hello,


I would like to auto collapse the submenu items of a Menu. (on page load)

is it possible? And how can I Achieve this?

Hi Niels,


How does the collapse work now? Does it happens when you click it? If yes, then you can write javascript at page level to achieve this. Assign a class to the submenu item, and then use a document ready event:


$(document).ready(function() {
    $(document).find(".UniqueMenuclass").click();  
});



Regards,

Gurvinder