Jump to content

On click event bug...


memymasta

Recommended Posts

Hi, i have a button1 that when pressed changes to button2. When button2 is pressed it should change back to button1. You could say that one should be able to "toogle" between the buttons when clicking.The problem is: When button2 is pressed nothing happens, until you hover in and out of the td.It works aswell if i put an echo above remove line... so wierd...Any ideas?jfiddle link

test2.html

Link to comment
Share on other sites

Oh i finally figured it out...There was another click event on the td that overrided the span onclick that was placed inside that td...By unbinding the first event, the second one worked well.

Edited by memymasta
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...