JSFiddle - React, Tailwind, and code Playground
HTML
<select></select>
JavaScript
var $opt = $("<option/>").val("foobar").text("foobar");
$('select').append( $opt );
console.log( $opt.val() );
console.log( $opt[0] );
<select></select>
var $opt = $("<option/>").val("foobar").text("foobar");
$('select').append( $opt );
console.log( $opt.val() );
console.log( $opt[0] );