jquery - how can I display that the user succesfully registered on my sign-in modal -


this ajax script

if (result=='123') {                 $.ajax({                     type: 'ajax',                     method: 'post',                     url: url,                     data: data,                     async: false,                     datatype: 'json',                     success: function(response){                         if(response.success){                             $('#signinform')[0].reset();                             if(response.type=='add'){                                 var type = 'added'                             }else if(response.type=='update'){                                 var type ="updated"                             }                           } else {                             alert('error');                         }                     },                 });             }//end of if(result == '123')         });//end  of #btnsave 

if user pass validation want display on modal registered , can login


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -