event listener select option javascript code example Example: addeventlistener js select item selectId.addEventListener("change", function() { });