JSFiddle - React, Tailwind, and code Playground
HTML
<form class="form" action="false">
<input type="text" value="some input" name="textInput" />
<input type="text" value="some text" name="textInput2" />
<input type="submit" class="sumbit" value="Send" />
</form>
<form class="form" action="false">
<input type="text" value="Another" name="textInput" />
<input type="text" value="More Inputs" name="textInput2" />
<input type="submit" class="sumbit" value="Send" />
</form>
<div id="results"></div>
JavaScript
$(".form").submit( function(){
var inputs = $(this).serializeArray();
$.each(inputs , function(i, input){
$("#results").append(input.value + "<br />");
});
return false;
} );