Created
June 9, 2016 09:47
-
-
Save chaitu87/17b2ba377aee1d2e9fa78e826308cc2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'http://demo6.alightsoftwares.com/account/AskQuestion', | |
data: { | |
name: questionname, | |
email: questionemail, | |
phonenumber: questionmobile, | |
question: thequestion | |
}, | |
type: "POST", | |
dataType: "json" | |
}).done(function(data) { | |
console.log(data); | |
$('#myModal').modal('hide'); | |
$('#Thankyou').modal('show'); | |
}).fail(function(err) { | |
// $('#myModal').modal('hide'); | |
// $('#Thankyou').modal('show'); | |
console.log(err); | |
alert('Sorry Something Went Wrong'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment