Topic: Stepper - Feedback-Step - Create using jquery click
Zhao pro asked 6 years ago
I am using feedback-stepper and I have to use data-feedback="function" how can I use jquery instead. I want to use something like this:
$('#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); } } }); });
Add comment
Piotr Glejzer staff answered 6 years ago
Hi,
Can you try this?
$('#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); } } }); }) } });
Best,
Piotr
Zhao pro commented 6 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.
Status
Resolved
Specification of the issue
- ForumUser: 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