jQuery授权关闭长方体对话框
目前,我正在使用以下命令关闭一个对话框jQuery授权关闭长方体对话框,jquery,delegates,boxy,Jquery,Delegates,Boxy,目前,我正在使用以下命令关闭一个对话框 <button onClick="Boxy.get(this).hideAndUnload(); return false;">Cancel</button> 从中,您可以使用.closecss类: .结束 Any elements with this class will be hooked up to close the dialog on 点击 再想一想:你试过使用这种逻辑吗 $('.btnCancel').cli
<button onClick="Boxy.get(this).hideAndUnload(); return false;">Cancel</button>
从中,您可以使用.closecss类:
.结束
Any elements with this class will be hooked up to close the dialog on
点击
再想一想:你试过使用这种逻辑吗
$('.btnCancel').click(function(){
Boxy.get(this).hideAndUnload(); return false;
});
我没有看过这个方方正正正的网站(在我找到它之前你已经回答了),但是你的第二个建议看起来像是我对如何实现OP意图的第一个想法。尽管我投票赞成有意识地建议使用Boxy本身的内置特性,而不是通过额外的jQuery使事情复杂化。好电话=)
Any elements with this class will be hooked up to close the dialog on
$('.btnCancel').click(function(){
Boxy.get(this).hideAndUnload(); return false;
});