Topic: stepper current step
DanielKYantis pro premium priority asked 3 years ago
stepper with 3 or more steps. how to find the active step?
if current step x then do something.
DanielKYantis pro premium priority answered 3 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();
}
}
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- 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