Mark Brown
Mark Brown

Reputation: 12544

Accessing an elements event handlers with jQuery

How can I access an elements event handler's with jQuery.

The following link seems to indicate that you could previously access them via $(element).data('events')

Accessing functions bound to event handlers with jQuery

But this method doesn't seem to work anymore.

Upvotes: 0

Views: 88

Answers (1)

JAAulde
JAAulde

Reputation: 19560

$(element).data('events') still works for me.

See here in jQ 1.5.2: http://jsfiddle.net/JAAulde/f82Ky/1/

Upvotes: 1

Related Questions