html - Dealing with javascript in Bootstrap -


I am trying to work on "popover" for bootstrap. I believe my code is correct, but I'm not sure about the javascript part. What's included inside my head below - Importing Javascript - and what looks like my tag Thanks for the help!

  & lt; Script src = "http://code.jquery.com/jquery-latest.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / bootstrap.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "js / jsforfinal.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" & gt; & Lt; / Script & gt;   

and inside my JFForFinal.js

  $ ("a [rel = popover]"). Popover ('show');   

My tag looks like this inside my body tag:

  & lt; A href = "#" rel = "popover" data-placement = "true" data-original-title = "pops right" & gt; Content & lt; / A & gt;   

I think everything is fine, but when I click on the button, nothing is coming, wrap your js in jquery document-ready pride <<>

"post-text" itemprop = "text" $ (function () {$ (" A [rel = popover] "). Popover ('show');});

This is a short story for:

  $ (document) .ready (function () {$ ("a [rel = popover]") Popover ('show');});   

Which tells jquery to postpone the execution until the document is ready.

If you want to suspend the execution until the click of the button or click: (function () {$ ("a [rel = popover]"). 'Show');})}} ;

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -