Demo of Show Hide Effects using JQuery

Hide this layer by using buttons




CSS

<style>
.msg{ 
position: relative;
FONT-SIZE: 12px;
font-family: Verdana;
padding:10px;
width:350px;
background-color: #f1f1f1;
}
</style>

HTML


<input type=button id=b1 value='Show'><input type=button id=b2 value='Hide'>
<br><br>
<div id=d1 class='msg'>Hide this layer by using buttons</div>

jquery

<script>
$(document).ready(function() {
///// show /// 
	$('#b1').click(function(){
	$('#d1').show();
	})
//////Hide ////////
	$('#b2').click(function(){
	$('#d1').hide();
	})
////////////////
})
</script>