Here executes a JavaScript when a user changes the selected option of a <select> element.
<select onchange="myFunction()">