JSFiddle - React, Tailwind, and code Playground
by Ankit G.
HTML
<form id="test" method ="get">
username<br>
<br>
<input type="text" name="firstfield" id="firstfield">
password
<input type="text" name="secondfield" id="secondfield">
<input type="submit" id="_click" value="click">
</form>
JavaScript
$(document).ready(function () {
$('#_click').click(function () {
var uname = $('#firstfield').val();
var pass = $('#secondfield').val();
alert(uname);
alert(pass);
});//click
});//documentready