JSFiddle - React, Tailwind, and code Playground
by ChrisStanyon
HTML
<form action="#" method="post" id="myForm">
<input type="text" id="username" />
<input type="text" id="phone" />
<input type="submit" value="Go" />
</form>
JavaScript
$('#myForm').submit(function(e) {
e.preventDefault();
console.log("Submitted")
});
$('#username').blur(function(e) {
console.log("Blurred");
})