我想使用JQuery方法显示和隐藏。
答案 0 :(得分:2)
使用.show() 和.hide()方法
$("#id").show("fold",{},1000);
$("#id").hide("fold",{},1000);
答案 1 :(得分:1)
使用.show()和.hide()
例如,隐藏它:
<p class="myParagraph">This is some paragraph that you want to hide</p>
<script type="text/javascript">
$(document).ready(function() {
$('.myParagraph').hide();
});
</script>
答案 2 :(得分:1)
将您的paragrAPHS放入
并尝试此代码
$(document).ready(function(){
$('button_hide_show').click(function(){
$("p").toggle();
});
})