我使用下面的代码,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