I think, hopefully I will find the answer. Thank you.****
IncreaseThis is how you can update the value of the input when clicking on a button. Hope this helps.
const incrementValue = () => {
let value = parseInt(document.getElementById('number').value, 10);
value = isNaN(value) ? 0 : value;
value++;
document.getElementById('number').value = value;
}
<form>
<input type="text" id="number" value="0"/>
<input type="button" onclick="incrementValue()" value="Increment Value" />
</form>