JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="amount" id="amount" value="3000" />
JavaScript
$('input').click(function() {
$(this).focus();
$(this).select();
});
<input type="text" name="amount" id="amount" value="3000" />
$('input').click(function() {
$(this).focus();
$(this).select();
});