To float Bootstrap popover as hover instead of clicking

Asked 2 years ago, Updated 2 years ago, 46 views

Using Bootstrap's popover .

But I can only see popover when I click it, but I want to float it right away if I raise the mouse (hover.

I think the document says it's possible with hover, but I don't know how to use it. How do I squeeze it?

bootstrap javascript jquery

2022-09-22 21:35

1 Answers

<a id="popover" data-trigger="hover">Popover</a>

You can put hover instead of click in the data-trigger.

Or you can write it in JavaScript as below.

$("#popover").popover({ trigger: "hover" });

For more information, see Demo page .


2022-09-22 21:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.