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 current step

DanielKYantis priority asked 2 years ago


stepper with 3 or more steps. how to find the active step?

if current step x then do something.


DanielKYantis priority answered 2 years ago


I figured out an answer:

function goStep(d) {
  (d == 'next') ? stepper.nextStep() : stepper.previousStep();
  if (document.getElementById("step2").classList.contains('stepper-active')) {
    document.getElementById("xyz").focus();
  } else if (document.getElementById("step3").classList.contains('stepper-active')) {
    document.getElementById("abc").focus();
  }
}


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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No