JSFiddle - React, Tailwind, and code Playground

by firegroove

HTML

<select name="options">
      <option value="1">Red</option>
      <option value="2" selected >Green</option>
      <option value="3">Blue</option>
</select>

JavaScript

$(function() {
    $('[name=options]').val( '3' );
})