开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜