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/hide'>
<br><br>
<div id=d1 class='msg'>Hide this layer by using buttons</div>

jquery


<script>
$(document).ready(function() {
	$('#b1').click(function(){
		$('#d1').toggle();
	})
})
</script>