JSFiddle - React, Tailwind, and code Playground

by thvinic

HTML

<input id="valor" value="R$14,99">

JavaScript

$('#ItemName').keypress(function (e) {
    var txt = String.fromCharCode(e.which);
    if (!txt.match(/[!$(){}[\]:;<+?\\>]/g/)) {
        return false;
    }
});