Say I have the following jQuery:
$('#myelement').bind('click', foo);
How can I unbind this event without using jQuery?
The event doesn't show up in any of these methods on a DOM element:
var domElement = document.getElementById('myelement');
domElement.onclick // == null
domElement.click // == undefined
So how can I unbind it without using jQuery such as the following?
$('#myelement').unbind()