JSFiddle - React, Tailwind, and code Playground JavaScript var a = "<select id='1'><option id='2'>a</option></select>"; $.parseHTML(a);