how to find an anchor tag is clicked on current document in jQuery

Posted by Amit on Stack Overflow See other posts from Stack Overflow or by Amit
Published on 2010-05-11T04:59:33Z Indexed on 2010/05/11 5:04 UTC
Read the original article Hit count: 245

Filed under:

Hi,

I want to attach a click event at the document level with

 $(document).click();

And on clicking the element i would like to find out whether it is an anchor tag. If it is an anchor tag, then i will call a method to do something. How can that be done? Any idea?

© Stack Overflow or respective owner

Related posts about jQuery