JSFiddle - React, Tailwind, and code Playground

by wj_fiddle_playground

HTML

<select name="myName">
    <option value="first">first</option>
    <option value="last" selected>last</option>
    
    
</select>

JavaScript

var myElement = $('select[name="myName"]');

myElement.val(myElement.find('option').second().val());