referencing (this) in a function

Posted by Sara Chipps on Stack Overflow See other posts from Stack Overflow or by Sara Chipps
Published on 2010-05-12T09:08:01Z Indexed on 2010/05/12 9:14 UTC
Read the original article Hit count: 186

Filed under:
|

I have elements being generated by dynamic html, I would like to reference the particular href that is calling the function when one of many may be calling it.

<a href="javascript:Foo(this)">Link</a>

Does not work when I try to reference $(this). Is there another way to do this or do I have to make dynamic ids?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about function