JSFiddle - React, Tailwind, and code Playground
by joshmoto
JavaScript
function test(e) {
let result = $.post("postscore.php", d)
.fail(function(d) {
alert('failed. d=' + d); // not called if client is using windows
});
// ios doesn't get here ever, windows executes all the following code
alert('about to always');
result.always(function() {
showresult();
});
alert('about to hide');
$(this).hide(200);
e.preventDefault(); // prevents the form from being submitted
}