tooltip - Cannot get Bootstrap popover to work at all, despite reading numerous replies on here -


ok trying twitter bootstrap popovers work on forum theme coding, , cannot them work @ all.

i have read countless similar threads , tried no luck, i'm hoping if can post exact code can tell me i'm going wrong.

ok have included javascript in page, required tooltip , popover js files in head:

<script src="{$mybb->settings['bburl']}/jscripts/bootstrap-tooltip.js"></script> <script src="{$mybb->settings['bburl']}/jscripts/bootstrap-popover.js"></script> 

now here html/javascript markup:

<a id="pop" title="" data-content="vivamus sagittis lacus vel augue laoreet rutrum faucibus.    <p>hi</p><p>hihowareyou</p><p>hi</p>" data-placement="bottom" data-toggle="popover"     class="btn" href="#" rel="popover" data-original-title="popover on bottom"     data-html="true">popover on bottom</a> <script> $(function(){                          $("#pop").popover(); }); </script>  

i have included necessary css comes bootstrap.css (although haven't included css, tooltip , popover css).

you can see having issue, on demo link:

http://mybbwebdesign.com/demo/index.php?action=mytheme&style=28 [edit - link may outdated, sorry]

in alert bars says "popover on bottom". want clicked , popover appears underneath.

can tell me going wrong?

you have include complete bootstrap.min.js file, not partial popover one.

<script src="/js/bootstrap.min.js"></script> 

in addition, including 2 different versions of jquery, break everything.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js" type="text/javascript"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -