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: 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.

enter image description here


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();  
    })

Iyarkai Tech Lab free commented 2 years 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

  • 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