javascript - Can one event listener prevent another from firing? -


i'm writing chrome extension injects content script page. script adds event listener select element on page routine can executed whenever selects new value drop-down.

i've tried adding event listener both "normal" js method:

document.getelementbyid('myselect').addeventlistener('change', dosomething); 

...and jquery method:

$('#myselect').change(dosomething); 

neither seems work; event never fires.

by inspecting element chrome's developer tools, i've discovered element has event listener on it, created script running on page. know listener functioning because resulting script logs data console. i'm wondering if existing listener somehow "absorbing" change event , preventing reaching own listener.

oddly enough, when turn on monitorevents element, logs no events @ of type (not things shouldn't affected, mouseover).

any thoughts?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -