how to triger change event of a select dropdown using javascript code example Example: html select change event select.addEventListener('change', function);