Tuesday, May 27, 2014

jQuery toggle()

With jQuery, you can toggle between the hide() and show() methods with the toggle() method.

$("button").click(function(){
  $("p").toggle();
});

No comments:

Post a Comment