I am trying to check for events related to an element using the following syntax
$(item).data("events");
I also tried
$(item).data("events").change;
I know for sure that the change event is connected, and if I do
$(item).attr("change")
I see that an attribute with that name has been registered.
I use the syntax:
$(item).change(handler)
to bind the event.
Why can't I get an object of my data (events)?
source
share