Drop down menu and ajax calls

Hi,

I have a drop down menu that contains a set of menu items. Each menu item is planned to make ajax call to change the content of the page when it's clicked. I used link_to_remote successfully to make the ajax call and update the specific div

However, After clicking the menu item, the menu doesn't close, and it remains open. The contents already changed in the background, but the menu is still open, which hides a part of the page.

Any help?

Hi Ahmed,