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: modal hide/show not working

Alexandroni free asked 3 years ago


*Expected behavior*hide one modal and show other

*Actual behavior*hide one and not showing the second modal

Resources (screenshots, code snippets etc.)https://mdbootstrap.com/snippets/standard/alexandroni/3126247

snippet whith button: https://mdbootstrap.com/snippets/standard/alexandroni/3126273


Michał Duszak staff answered 3 years ago


Generally it's not a good idea to use multiple modals, but I have made solution for you. I have separated those modals, and created a second button which is hidden. The 'add' inside your first modal fires the second button which is hidden outside, which is effectively firing the second modal and hiding the first one.

https://mdbootstrap.com/snippets/standard/m-duszak/3129377#html-tab-view



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.7.1
  • Device: pc
  • Browser: firefox
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes
Tags