preloader icon
light-dark-switchbtn
Sign in - Stock Strategic Options
$(document).ready(function(){ $("#errorshow1").hide(); }); $("form#loginForm").submit(function(e) { e.preventDefault(); var formData = new FormData(this); formData.append('request', 'login'); $.ajax({ url: './ops/users', type: 'POST', data: formData, beforeSend:function(){ $('#errorshow1').html("logging in ").show(); }, success: function (data) { let resp = $.parseJSON(data); if (resp.status == "success") { $("#errorshow1").html(resp.message).show(); setTimeout(' window.location.href = "./app/account"; ', 3000); }else{ $("#errorshow1").html(resp.message).show(); setTimeout(function(){ $("#errorshow1").hide(); }, 10000); } }, cache: false, error:function(){ $('#errorshow1').html("An error has occured!!").show(); setTimeout(function(){ $("#errorshow1").hide(); }, 10000); }, contentType: false, processData: false }); });