我使用下面的代碼,jQuery的隱藏不工作
HTML代碼,
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<div id="one" class="two">HI WELCOME TO RESOURCESUITES.COM</div>
<button>Click me</button>
jQuery代碼,
$(document).ready(function(){
$("button").click(function(){
$("div#one .two").hide();
});
});
- 上面的代碼是不是working.the DIV沒有隱藏。
可以寫代碼div標籤和按鈕標籤... – Anish 2011-04-19 08:37:39
試着用'$( 「#一」),隱藏();' – diEcho 2011-04-19 08:38:30
似乎爲我工作 – ianace 2011-04-19 08:40:26