JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
JavaScript
$("body").prepend("<select id='test'><option value='1'>1</option><option value='2' selected='selected'>2</option></select>")
alert($("#test option[selected]").val())