JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

HTML

<input type="text" name="myText" id="myId0" />

JavaScript

var j = 0;
var foo = 5;
$('#myId' + j).val(foo);