To my best effort, this is not a duplicate despite what it seems. Using bootstrap 3.3.5, I have tried to show tooltips on elements inside a unique modal dialog, but they always fall behind the modal dialog and its semi-transparent backdrop as well. I have followed the advice given elsewhere, I have set the container. In fact, I used 4 ways to set the container to no avail:
- Using the standard markup attribute:
data-container=".modal-body"
(and a dozen other possible selectors, in vain). - Using the options of the tooltip funtion:
container.find("[data-toggle='tooltip']").tooltip({ container: ".modal-body" });
- Setting the
data-container
via the jQuerydata
function:container.find("[data-toggle='tooltip']").data("container", ".modal-body").tooltip();
- Setting the
data-container
via the jQueryattr
function:container.find("[data-toggle='tooltip']").attr("data-container", ".modal-body").tooltip();
Any suggestions? One could propose to boost the z-index of the tooltip via CSS, but seeing through the semi-transparent backdrop, I also observe that the positioning of the tooltip is not entirely correct. So it is not just a matter of z-index.
Thank you for your help!
PS this is consistent accross all browsers.