JSFiddle - React, Tailwind, and code Playground

by gurvinder372

HTML

<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<select name="test123" id="test123" onchange="testOnchange()">
  <option>Chocolate</option>
  <option>Candy</option>
  <option>Taffy</option>
  <option>Caramel</option>
  <option>Fudge</option>
  <option>Cookie</option>
</select>

JavaScript

$( "#test123" ).change(function () {
    console.log("change");
  });
function testOnchange(){
    console.log("onchange")
}