Topic: stepper current step

DanielKYantis priority asked 1 year ago


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

if current step x then do something.


DanielKYantis priority answered 1 year 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