JSFiddle - React, Tailwind, and code Playground
HTML
<form id="example" name="example" action="post">
Input <input type="text" name="text" />
<input type="submit" name="submit" value="submit" />
</form>
<div class="button">Submit</div>
CSS
.button {
border: 1px solid black;
width: 50px;
text-align: center;
}
.button {
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#example {
margin-bottom: 30px;
}
JavaScript
$(".button").click( function() {
alert("Button clicked");
});