JSFiddle - React, Tailwind, and code Playground

by ipr101

JavaScript

var html= '<select name="id"></select>';
var $select = $('<div></div>').append(html);
$select.find('select').append('<option value="1">Test</option>');
alert($select.html());