我正在使用jquery显示。这是一张我的代码:jquery显示检查复选框是否在关闭前检查
<div id="myModal" class="reveal-modal" data-reveal>
<p>bmla</p>
<input id="read" type="checkbox" value="read">I've read it</input>
<a id="ok" class="close-reveal-modal">OK</a>
</div>
我想检查之前,我关闭这个模式我chebock检查..
$(document).ready(function(){
if (/bla/.test(self.location.href)) {
$('#myModal').reveal({
animation: 'fadeAndPop', //fade, fadeAndPop, none
animationspeed: 300, //how fast animtions are
closeonbackgroundclick: false
});
}
});
我怎样才能做到这一点?
在此先感谢
请分享你的揭示模式初始化jquery。 –
你的意思是? – user1345883