Crazy Codding
Crazy Codding is a question and answer blog for programmers.
Tuesday, 14 May 2013
Hide On Click
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<div id="d1">
Test Content
</div>
<span id="s1">click me to hide-></span>
<script>
$("#s1").click(function(){
$("#d1").hide();
})
</script>
</body>
</html>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment