Jquery for hide and show of div,span,pragraph

Jquery for hide and show of div,span,pragraph – Php Code Hub

Jquery for hide and show of div,span,pragraph – Php Code Hub:Jquery for hide and show of div,span,pragrap,the jquery toggle method is used for show and hide div.how to hide and show div,span,pragrap,li,h tags onclick the jquery show() and hide() method is used display and hide.The jquery toggle() method is also used for display and hide html element.its work with selector.

Jquery for hide and show of div,span,pragrap

Jquery for hide and show of div,span,pragrap

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        $("#containt").toggle('slow');
    });
});
</script>
<button>Display Toggle</button>

<div id="containt" style="width:500px; height:250; padding:50px; background-color:#CCFF66;">This is a paragraph with little content.This is another small paragraph.</div>
Share Button

About admin

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Author: pramod kumar kumawat Mob: 9269727062
Free WordPress Themes - Download High-quality Templates