how to change onchange function on select option code example Example: html select change event select.addEventListener('change', function);