Hamid Reza Hamid Reza - 1 year ago 182
jQuery Question

How to set multiple data-toggle for a link in bootstrap?

I have a link and I want to set a bootstrap tooltip for it and aI want it to show a bootstrap modal too.
To show a modal the code is this:

<a href="#myModal" role="button" data-toggle="modal">Show</a>

And the following would make a bootstrap tooltip:

<a data-placement="right" data-toggle="tooltip" rel="tooltip" data-original-title='Hello' href="#"></a>

Now how to combine it.Combine means having a link that shows modal and has a bootstrap tooltip too?

Answer Source

I found the issue:

<a href="#myModal" role="button" data-toggle="modal" rel="tooltip" data-original-title='Hello'>Show</a>

Thats all.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download