Attach a function to run when an element has been changed:

Enter your name: Language:

Select an option in the drop-down list.