JavaScriptjQuery

jQuery Toggle

<script>
$(document).ready(function(){
  $("button").click(function(){
    $("p").toggle();
  });
});
</script>

This is a paragraph.

Toggle between hide() and show()

Related Articles

Leave a Reply

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

Back to top button