JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" name="ns[id=>var]" value="">

JavaScript

jQuery(document).ready(function() {
    jQuery("input[name='ns[id=>var]']").val(1);
});