I am pretty new in Twitter BootStrap and I have the following problem.
I am trying to implement this example into a JSP page: http://www.w3schools.com/bootstrap/bootstrap_popover.asp
So I have simply added this code into the JSP page:
<a href="#" data-toggle="popover" title="Popover Header" data-content="Some content inside the popover">Toggle popover</a>
And thene I have added this JQuery function into a JavaScript file imported into the previous JSP page:
$('[data-toggle="popover"]').popover();
The problem is that it can't work and when I click on the button the popover window is not shown, in the URL I have http://localhost:8080/WIFIPNSD/validazione# and the page is scrolled to the top.
Why? What am I missing? How can I fix this issue and show this popover window?