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