JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<form action="submit.php" method="POST">
<input id="email" name="email" />
<input type="submit" class="btn btn-blue" id="email2" value="Send" />
<input type="submit" class="btn btn-blue" id="number" value="Send To Number" />
</form>
JavaScript
var email = document.getElementById('email');
email.onkeyup = function() {
document.getElementById('email2').style.display = (this.value.search(/^\s*\d+\s*$/) != -1) ? 'none' : '';
}