JSFiddle - React, Tailwind, and code Playground
HTML
URL:
<input class="txtbox" type="text" value="" style="width: 300px;" />
JavaScript
$('.txtbox').val(window.location.pathname);
URL:
<input class="txtbox" type="text" value="" style="width: 300px;" />
$('.txtbox').val(window.location.pathname);