JSFiddle - React, Tailwind, and code Playground
by Vimla Ramdoo
HTML
<input type="date" id="test" />
JavaScript
if ( $('#test')[0].type != 'date' ) $('#test').datepicker();
by Vimla Ramdoo
<input type="date" id="test" />
if ( $('#test')[0].type != 'date' ) $('#test').datepicker();