JSFiddle - React, Tailwind, and code Playground
by Yogesh Gupta
HTML
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<input type="radio" name="gender" onchange='sortList()' value="male"> Male<br>
<input type="radio" name="gender" onchange='sortList()' value="female"> Female<br>
<input type="radio" name="gender" onchange='sortList()' value="other"> Other
JavaScript
function sortList(){
alert('a');
};