JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="" id="xxx"/>

JavaScript

$('#xxx').val('krrr');

alert($('#xxx').parent().html());