Eventlistener not working?

I hae a for with a select box (uses javascript/css to add a search feature) but I noticed now the eventlkstener doesn’t work, heres the form


I ant to see if the eventlistener is working

document.getElementById('Manufacturer').addEventListener('change',postManufacturer);

nothing seems to happen (console.log(“OK”):wink: when I make a selection.
Do I need to put an eventlistener on another element?

Are there any errors in the console?

My guess is that the html code is created dynamically after the JavaScript is imported?

Do you have a ‘click’ event listener on each of those menu item divs? If so, what JavaScript code is linking those clicks to the <select> element options?

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.