To get the details of action performed on HTML element by jQuery
I have a page with lot of HTML elements and want a script that captures the action and on which element it was performed.
<script type="text/javascript">
$(document).ready(function() {
$('*').bind('click dblclick mousedown mouseenter mouseleave',
detectEvent);
function detectEvent(e) {
alert(e.type);
}
});
</script>
But even this script doesn't provid开发者_开发问答e the requirement.
Check out Visual Event. It will give you all the events currently attached on the page with loads of information about them
精彩评论