Keeping click events active after the first click

Keeping click events active after the first click

Hi all.
I have a main menu with some links that, once clicked, activate a corresponding submenu. I use the click() method to add an inline function as event handler. Each link points to an anchor which corresponds to the ID attribute of the submenu (this is due to accessibility reasons). Additionally, I use the preventDefault() method of the Event object for preventing the normal behavior of the link from being honored. When I click for the first time on the link, the submenu is shown as expected. But when I click on a closing button put on each submenu, each submenu is correctly closed, but I can't use the link of the main menu to open the submenu again. Should I try a more W3C-compliant approach using bind()? Unfortunately, I have no demo pages to show because of the policies of the current project. 

Thanks to anyone who will respond to this post.
Gabriele Romanato