bootstrap popover | bootstrap popover hide on click | bootstrap popover hide on document.click

//hide the popover on clicking anywhere on the document except itself
				$(document).click(function(e) {
//check whether you clicking on the popup content as it is also part of document 
					$('.popover').click(function(){
						return false; // Do nothin
					});
//clicking on document other than popup then hide the popup
   				 $('.pop').popover('hide');
				});

suri

I Am suresh(suresh kumar )a Web developer,Freelancer,webdesigner,UI developer from bangalore. Got 6+ yrs of IT experience . I specialize in standards-based XHTML, CSS and JavaScript web development. Each site I develop is built to be search engine friendly (SEO), using the latest development principles and techniques.

You may also like...

1 Response

  1. July 24, 2013

    [...] found the following code on the web but I really don’t understand [...]

Add Comment Register



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>