JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="23" value="Something" readonly />
<div id="kevs-button">Button</div>
CSS
#kevs-button {
background-color: orange;
padding: 5px;
width: 100px;
}
#kevs-button:hover {
cursor: pointer;
}
JavaScript
document.getElementById("kevs-button").addEventListener("click", displayNewValue);
function displayNewValue() {
document.getElementById('23').value="Something else";
}