Your code is working, but there is strange behavior.

The "alert" happens once on first click, if I click it again then the
"alert" is fired twice, click again and it's fired 3 times, etc...

So now I'm not sure what's happening.

Reply via email to