It's form validate checker. How can i add ajax success message. after all validation I want to show success message like "Your successfully signup";
jQuery(function ($) {
$('#username').blur(function(e) {
var username = $('#username').val();
$.ajax({
type: 'POST',
//url: 'http://localhost/stateway/user-signup/?username=' + username,
url: 'http://localhost/blue_bucket/signup/?username=' + username,
success: function (response) {
$("#responseusername").html(response);
}
});
e.preventDefault();
});
$('#email').blur(function(e) {
var email = $('#email').val();
$.ajax({
type: 'POST',
//url: 'http://localhost/stateway/user-signup/?email=' + email,
url: 'http://localhost/blue_bucket/signup/?email=' + email,
success: function (response) {
$("#responseemail").html(response);
}
});
e.preventDefault();
});
});