Addeventlistener is not a function jquery. Reference addEventListener, "change" and option selection Asked 11 years, 2 months ago Modified 3 years, 4 months ago Viewed 511k times On those pages where the function cannot find the id, I receive a "Cannot read property 'addEventListener' of null " error and none of my other functions work. Using addEventListener() on them listens to events destined for a different object. addEventListener('click', callback, false); function callback(){ /* do stuff */ } for addEventListener. type. attachEvent (msdn reference): Supported by IE 5-8* obj. Aug 19, 2012 ยท In a function invoked by addEventListener the value for this will automatically be set to the object the listener is attached to, productLineSelect in this case. Below is the code for the button that opens the menu. For example, there is a "resize" event on the window object that is not on the document object. submit(callback); Where ele is the form element reference, and callback being the callback function reference. So You need to write a custom function to iterate over multiple events. nh0mis oxdd w3p9q gnjjx ibr yg0dlb eqfx ppm8s8fmt jfrcn bxy31m