JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div"></div>
JavaScript
try {
jQuery( "<option/>" ).val();
jQuery( "div" ).html( "All good" );
} catch ( _ ) {
jQuery( "div" ).html( _ );
}
<div id="div"></div>
try {
jQuery( "<option/>" ).val();
jQuery( "div" ).html( "All good" );
} catch ( _ ) {
jQuery( "div" ).html( _ );
}