$(document).ready(function(){ //colorbox setting $(".group3").colorbox({ onOpen: function (){ $(".MsgModule_Media").hide(); }, rel: 'group3', transition: "none", width: "90%", height: "80%", onClosed: function (){ $(".MsgModule_Media").show(); $(".group3").focus();} }); });