您的位置:首页 > Web前端 > JQuery

jqueryclick事件-隐藏与显示

2016-05-18 20:46 381 查看
<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>jquery的隐藏与显示</title>

<script src="jquerylib/jquery-1.12.3.js"></script>

<script>

$(function(){

$("document").ready(function(){

$("input").click(function(){

$("p").hide();

});

});

});

</script>

</head>

<body>

<h2>This is a heading</h2>

<p>This is a paragraph.</p>

<p>This is another paragraph.</p>

<!--<button>Click me</button>-->

<input type="button" value="click me"/>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: