jQuery colorbox - getting called even after colsing
I am facing a weird problem. I do need to show a popup when checking a checkbox. It works fine, but the same popup appears even during unchecking.
if (eminputSelf.attr("checked") == true) {
alert('return');
} else {
$('#'+needHelpId).colorbox({ title:'',innerWidth:interWidth, innerHeight:innerHeight,close:'shutdown', inline:true, href:popId , onOpen:function(){ $(popId ).show();}, onCleanup:function(){ $(popId ).hide();}});
}
Please help. Thanks in advance.