0
我想通過使用jQuery打開揭示窗口,它不工作。我想知道你能否幫忙。代碼如下基金會4顯示與jQuery不工作的模態
<div class="row">
<a id="open" href="#" class="button">Click Me For A Modal</a>
<div id="myModal" class="reveal-modal [expand, xlarge, large, medium, small]">
<h2>Awesome. I have it.</h2>
<p class="lead">Your couch. It is mine.</p>
<p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p>
<a class="close-reveal-modal">×</a>
</div>
<script type="text/javascript">
$(document).ready(function() {
$("a.button").click(function() {
$("#myModal").reveal();
});
});
</script>
不,它不起作用...嘿,你認爲我需要防止違約嗎? –
不需要預防默認如果該按鈕不是提交類型的一個 – underscore
https://github.com/zurb/reveal – underscore