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: