JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<option selected>
</option>
</select>
Length of selected option value: <span id="result"></span>
JavaScript
var
$r = $('#result'),
$o = $('select option:selected');
$r.text( $o.val().length );