Attach a function to run when an element has been changed:
Write something in the input field, and then press enter or click outside the field.
Select an option in the drop-down list.