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