I'm creating a menu of users, it gets on a page the part that is embedded in other pages like index and home for example. It takes on the role of a widget that is only shown if there is session (user logged in) however it is shown with jQuery's toggle effect to show and hide.
On the script page the toggle effect usually works bad on the pages that it is displayed via include or require it expands and collapses automatically ie opens and closes. As I can solve this, I already researched the API but without success I have already used "perventDefault ()" also without success. Thanks for any help!