JQuery toggle method Example Code | How to show or hide HTML element using JQuery

JQuery toggle method Example Code


Definition: Using this JQuery method we can show the hide HTML elements and hide the HTML element.

This JQuery Effect is useful in lot of places. This is one of the good JQuery Interview Question.

Example JQuery Code:

  $(document).ready(function(){
    $("#btnToggle").click(function () {
      $(".toggle").toggle();
    });
  });


Demo:




 
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar