Okay so, I\'m wondering how to unbind an inline onclick event in jQuery. You\'d think .unbind() would work, however it doesn\'t.
.unbind()
To test this for you
jQuery's unbind won't work on onclick attributes - it only works for functions that were added via bind and thus are available in $(...).data('events'). You have to use removeAttr to remove onclick.
onclick
bind
$(...).data('events')
removeAttr
Read this question for more info.