Hi, i have a div to show when i pressed a button and hide when i pressed anywhere.
jQuery(document).ready(function () {
$(document).click(function (e) {
if (e.button == 0) {
$('#DivToHide').hide();
}
});
//If its own, return
$('#DivToHide').click(function () {
return false;
});
//If it is the button to triger Display, return
$('#DisplayDivButton').click(function () {
return false;
});
});
This works good, except: DivToHide contains a link button which makes a callback. But when i enable the code above, it does not make callback. Not that everything is in updatepanel. Thanks.