bootstrap modal with target id name containing dot in name


Topic: bootstrap modal with target id name containing dot in name does not work

Yiannis Kyriazidis asked 3 years ago

I have a modal to launch where the data-mdb-target id has a dot (.) in the name because it is server side generated. How do I get it to work in this case ?

snippet https://mdbootstrap.com/snippets/standard/yiannis_kyriazidis/3418421


Michał Duszak staff commented 3 years ago

Hello, since adding a dot into an id attribute could be troublesome, I prepared a little workaround. You just have to create event listeners and instances for each new modal. https://mdbootstrap.com/snippets/standard/m-duszak/3420175


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: windows desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes
Tags