Изменить события

<input type="text" onchange="console.log('You changed the text box!');">

<select name="my-select" id="my-select" onchange="console.log('You changed the select box!');">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
</select>
Gorgeous Goldfinch