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:

Continue Reading