JSFiddle - React, Tailwind, and code Playground
by GaryC123
HTML
<input type=text id="myinput" onkeyup="cleardollar()">
JavaScript
function cleardollar(){
input=document.getElementById("myinput")
input.value= input.value.replace(/\$/g, '');
}
by GaryC123
<input type=text id="myinput" onkeyup="cleardollar()">
function cleardollar(){
input=document.getElementById("myinput")
input.value= input.value.replace(/\$/g, '');
}