JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="test" />
JavaScript
$("input").blur(function(evt) {
try {
var val = eval(this.value);
this.value = val;
}
catch (e) {}
});
<input type="text" name="test" />
$("input").blur(function(evt) {
try {
var val = eval(this.value);
this.value = val;
}
catch (e) {}
});