<title>tr odd Selects all odd rows of table - jQuery Example</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js">
<script type="text/javascript">
$(document).ready(function(){
$("#togglebutton").click(function(){
$(".demo-para").toggle(500);
<a href="javascript:void(0)" id="togglebutton">
<p class="demo-para">This id demo paragraph for show and hide functionality.</p>