how to view associated click function code

Posted by llamerr on Stack Overflow See other posts from Stack Overflow or by llamerr
Published on 2010-04-30T13:54:51Z Indexed on 2010/04/30 13:57 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

For example, i associate following function with some element

$('table#users tbody tr:first #save').click(function(){
    $(this).closest('tr').remove();
});

Now, if i don't know where this function is stored, is there a way to view associated with click() code? In above example, i want a way to view that in firebug, or in another way

$(this).closest('tr').remove();

If I'm writing in console following, i'm get a link to dom inspector

>>> ($('table#users tbody tr:first #save').click)
function()

but link is for jquery library, not the code i want.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery