JSFiddle - React, Tailwind, and code Playground
by Anirban Nath
HTML
<input type="radio" name="order" id="noi" value="http://stackoverflow.com">
<label for="noi">Most Recent</label>
<input type="radio" name="order" id="vechi" value="http://stackoverflow.com" >
<label for="vechi">Most Old</label>
<input type="radio" name="order" id="aprec" value="http://stackoverflow.com" >
<label for="aprec">Most Liked</label>
JavaScript
$("input").change(function() {
if(this.checked) {
window.location = this.value;
}
});