JSFiddle - React, Tailwind, and code Playground

by RoryMcCrossan

HTML

<input type="text" name="foo" id="foo" readonly="true" />

JavaScript

$('#foo').val('Foobar');