js input select on change code example Example: html select change event select.addEventListener('change', function);