Topic: Stepper - Feedback-Step - Create using jquery click
$('#send').click(function(){
// START LOADING ANIMATION PROGRESS CIRCLE- I want to appear loading animation
$.ajax({
type: 'post',
url: '/register',
data: $('#form').serialize(),
success: function(data) {
// STOP LOADING ANIMATION PROGRESS BAR AND GO TO NEXT STEP
if (data.success) {
$('#response').text(data.message);
}
else {
$('#response').text(data.message);
}
}
});
});
Piotr Glejzer
staff answered 7 years ago
$('#send').click(function () {
functionsomeFunction() {
setTimeout(function () {
$.ajax({
type:'post',
url:'/register',
data:$('#form').serialize(),
success:function (data) {
$('#id-your-stepper').nextStep();
if (data.success) {
$('#response').text(data.message);
} else {
$('#response').text(data.message);
}
}
});
})
}
});
Zhao pro commented 7 years ago
I found a better solution $('#feedback-step').activateFeedback(); and then $('#feedback-step').destroyFeedback();
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.5.10
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No