JSFiddle - React, Tailwind, and code Playground
by tuga
HTML
<input type="text" id="email" value="aaaa+aaaa@gmail.com" />
<input type="button" id="test" value="Test Email" />
JavaScript
$("#test").click(
function () {
var email = document.getElementById('email').value;
// check date and print message
email = email.replace(/\+/, "");
alert(email);
}
);