JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="" id="xxx"/>
JavaScript
$('#xxx').val('krrr');
alert($('#xxx').parent().html());
<input type="text" value="" id="xxx"/>
$('#xxx').val('krrr');
alert($('#xxx').parent().html());