0

Possible Duplicate:
Can I find events bound on an element with jQuery?

I'm using a styled select object to automatically apply styles to all standard select boxes. This is all done in a generic class. In that class, I have a method that needs to trigger the .change() event on the select box's parent element, IF a change function is defined. The parent elements are not created in the generic class, and therefore may or may not have a change function explicitly defined.

How can I test to see if there's a change function defined for a specific element (by selector) before calling the trigger?

Community
  • 1
  • 1
EmmyS
  • 11,892
  • 48
  • 101
  • 156
  • 1
    Why? You can just trigger the change, even if there isn't any event attached to it. – Ortiga Jan 09 '13 at 16:17
  • Please go ahead and close. The link posted by @ChristianVarga gave me what I needed; I just couldn't seem to get the search terms correct when I was looking for an existing answer. – EmmyS Jan 09 '13 at 16:30

0 Answers0