JSFiddle - React, Tailwind, and code Playground

HTML

<select id="month">
  <option value="Jan">Jan</option>
  <option value="Feb">Feb</option>
</select>

JavaScript

var month = document.getElementById("month");

month.onchange = function() {
  if (month.value == "Feb") {
    alert("Feb selected");
  }
}