jQuery 1.11.2
Yes, I'm aware that it's been answered a couple of times before - but the provided replies doesn't work for me.
Using this page: https://www.lensway.se/cart
I need to check if any events have been added to the "Lägg till linser"-button.
I use the solution from here: jQuery 1.8 find event handlers
jQuery._data($('.add-row.LENS.btn.gray')[0], 'events')
But that returns undefined.
I know it has events, because I can see them in Chrome Dev Tools:
The actual code that's executed to add the code looks like this:
$(document).on("click", ".add-row", function(a) {
(I have no control over the code so I can't make modifications to it, I just need to detect if that code has been run and the element has the event)