Jquery popup change
Jquery popup change
Hi! and thanks to this wonderful group!
I have this jquery that i was looking for that when clicked away
(outside the popup) it hides the popup.
i just want that it should also have a link inside the popup to close
it as well!
jQuery(document).ready(function(){
jQuery(".button").bind("click", function(e) {
jQuery("#bubble").css({
top:jQuery(this).offset().top-jQuery("#bubble").height()-2
}).show();
e.stopPropagation(); // Stops the following
click function from
being executed
jQuery(document).one("click", function(f) {
jQuery("#bubble").hide();
});
});
// STOP the menu from disappearing when it is clicked
jQuery("#bubble").bind("click", function(e)
{ e.stopPropagation(); });
});
Thanks so much!