JSFiddle - React, Tailwind, and code Playground
by mdamia
HTML
<form method="POST">
<input type="text" name="tweet1" class="tweet" />
<br>
<input type="submit" class="submit" />
</form>
JavaScript
$('.submit').click(function (e) {
alert($('.tweet').val());
e.preventDefault();
});