Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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);
                        }
                    }
                });
});

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();



Please insert min. 20 characters.

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