Topic: Login / register page

Iyarkai Tech Lab free asked 10 months 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.

enter image description here


Michał Duszak staff answered 10 months 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();  
    })

Iyarkai Tech Lab free commented 10 months ago

Thanks for reply. Now it's working fine.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: 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