javascript - Bootstrap pop over is not closing -


i using bootstrap pop on when click 1 button gots opened , closed same button click again.

i tried add close button beside of title , has done when clicked on close button not closing.

my code:

$('#emailpopover').popover({         placement:'right',         trigger: 'click',         html: true,         title:'voter variables'+              '<button type="button" id="close" class="close" onclick="$(this).popover("hide");">&times;</button>'     });  

try using &quot; instead of quotation marks this:

$('#emailpopover').popover({         placement:'right',         trigger: 'click',         html: true,         title:'voter variables'+              '<button type="button" id="close" class="close" onclick="$(&quot;#emailpopover&quot;).popover(&quot;hide&quot;);">&times;</button>'     });  

bootply example: http://www.bootply.com/pd2qzayqju


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -