javascript - How to show bootstrap bottom pophover an image click in java script -
can tell how show bootstrap bottom pophover image button click in java script
thanks
bootstrap has usefull documentation popovers. can read here: http://getbootstrap.com/javascript/#popovers
here simple example how use:
<img src="so.jpg" data-toggle="popover" data-title="top title" data-content="body text" />
don't forget include jquery
, bootstrap.js
. need declare popover, because doesn't work default, can use example:
$(document).ready(function() { $('[data-toggle="tooltip"]').tooltip(); $('[data-popover="popover"]').popover({ trigger: "hover" }); });
this example contains solution hovering
image. replace data-toggle="popover"
data-popover="popover"
.
i hope you.
Comments
Post a Comment