Topic: Login / register page
Iyarkai Tech Lab free asked 2 years ago
we are using login / register page. In the bottom of login tab, register link is not activate the register tab. Register tag is using. I need help to activate the register tab when i click register link in login tab.
Michał Duszak staff answered 2 years ago
You can listen to click to use show()
method of Tabs.
https://mdbootstrap.com/snippets/standard/m-duszak/3633916#js-tab-view
JS:
const someTabTriggerEl = document.querySelector('#registration-tab');
const registerText = document.querySelector('#register-text');
const registerTab = new mdb.Tab(someTabTriggerEl);
registerText.addEventListener('click', (e) => {
e.preventDefault();
registerTab.show();
})
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.10.2
- Device: laptop
- Browser: chrome
- OS: windows 10
- Provided sample code: No
- Provided link: No