Remember that jQuery library must be included.
Use following js code
jQuery(document).mouseup(function (event){
var divcontainer = jQuery(".forclose" ); // Object of DIV
if (divcontainer.has(event.target).length === 0){
divcontainer.hide();
}
});
Use following js code
jQuery(document).mouseup(function (event){
var divcontainer = jQuery(".forclose" ); // Object of DIV
if (divcontainer.has(event.target).length === 0){
divcontainer.hide();
}
});
No comments:
Post a Comment