Overriding onClick event in jQuery

Interesting problem today, I tried to override behaviour of an image. The simple approach of replacing behaviour obviously didn't work:

Neither $("#game-image").removeAttr('onclick'); did anything. There is a function unbind.

This can be followed by the 'overriding' function:

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box