[jQuery] Re: Detecting elements with click handlers

2007-11-28 Thread Glen Lipka
Ok, cool, thank you. :) Glen On Nov 27, 2007 12:35 PM, David Serduke <[EMAIL PROTECTED]> wrote: > > This won't work for every javascript library of course but for jQuery > I believe you can use the internal .data() functions to find the > handlers. > > http://docs.jquery.com/Internals/jQuery.dat

[jQuery] Re: Detecting elements with click handlers

2007-11-27 Thread David Serduke
This won't work for every javascript library of course but for jQuery I believe you can use the internal .data() functions to find the handlers. http://docs.jquery.com/Internals/jQuery.data#elem var elem = $("a").get(0); var handlers = jQuery.data(elem, "events") || {}; var clicks = handlers["cl