JSFiddle - React, Tailwind, and code Playground
by usmanhalalit
HTML
<form method="POST" id="Form1" name="Form1">
<td>Number :<input name='numbr' type="text" maxlength="10" size="15"></td> <td>Amount <input name='amt' type="text" maxlength="4" size="4"></td> <td><input id="done" type="submit" value="Done"> | </td> </form>
JavaScript
$(function(){
var dataString = $('#Form1').serialize();
$.ajax({
type: "POST",
url: "some.php",
data: dataString,
cache: false,
success: function(){
alert('Boom!')
}
});
});