通过jquery.min.js让隐藏的DIV通过点击显示出来!

通过点击之后让隐藏的DIV显示出来

<style>
#list{display:none;}
</style>
<a href="javascript:;" id="All">点击查看 &darr;</a>
<div id="list">
<p>这里是要显示的内容</p>
<p>这里是要显示的内容</p>
<p>这里是要显示的内容</p>
<p>这里是要显示的内容</p>
<p>这里是要显示的内容</p>
</div>
<script src="http://www.love0312.com/static/dnwfb/js/jquery.min.js"></script>
<script>
        $("#All").on("click",function(){
            $("#list").toggle();
        })
</script>

本文链接:https://www.dnwfb.com/1518.html,转载请注明出处。
0

评论0

没有账号? 注册  忘记密码?