forexknight forexknight - 1 year ago 111
jQuery Question

Bootstrap popover is not appearing

I'm facing strange issue. Bootstrap's popover is not appearing in my application.

Of course I am initiating popover in .js file (to be clear this file is also included into head section).


This is how my simplest popover link looks like:

<a href="#" data-toggle="popover" title="Popover Header" data-content="Some content inside the popover">Toggle popover</a>

By the way bootstrap's tooltips are working correctly.

Update - head + body sections

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ URL::to('css\bootstrap.css')}}">
<script src="{{URL::to('js\less.min.js')}}"></script>
<script src="{{ URL::to('js\jquery-1.12.4.js')}}"></script>
<script src=''>
<script src="{{ URL::to('js\app.js')}}"></script>
<script src="{{ URL::to('js\bootstrap.min.js')}}"></script>
rest of the code...

Answer Source


<script src="{{ URL::to('js\app.js')}}"></script>


 <script src="{{ URL::to('js\bootstrap.min.js')}}"></script>

And make sure all tags appear in the and not the

Because your script tags are in the body, the DOM needs to fully load first before it can execute. I'm surprised your console doesn't report an error.

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