JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="lol" value="hello abu"/>
<input type="submit" id="butt"/>
JavaScript
$('#butt').click(function(){
$('#lol').val('hello world');
});
<input type="text" id="lol" value="hello abu"/>
<input type="submit" id="butt"/>
$('#butt').click(function(){
$('#lol').val('hello world');
});