Modal over modal

Hello to all,
I have a modal that show a record, there a button in that modal that open another modal that show another table linked with the first record. It works perfect. the only problem is that the second modal that open from the button is opening behind the first one. I would like to bring it to the front. I am sure that there a way but I don’t know how to do it.
Thanks in advanced

Probably better to hide the first modal when the second one opens, and then show it again when the second one closes.

Good idea, I will try. Thanks

1 Like

Thanks a lot, I even don’t think in that.

1 Like

You can also place the second modal code after the first modal in your HTML in case you don’t want to hide your first modal when second opens.

1 Like