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 […]

Leave a Reply

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