Skip to content
Advertisement

jquery event handler only running once

I am having problems with jqueries “click” event handler, its working only once, and then it stops, please I need help fixing it.

What I did is, I use an image as a button, for my Web app but, through jquery, but it only runs once.

Here is the code:

JavaScript

Please tell me if you need more info, Thanks.

Advertisement

Answer

The problem I don’t think is with the jquery. Your cancel menu moves the menu all the way to the right, but you never bring it back.

I reset the transform to none on the click of the menu button and it works.

Below is the relevant line in the menu_button click event handler

JavaScript

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement