Monday 1 December 2008

JQuery - Basic Show and Hide

Add following click handlers to page using console in FireBug
  • $('#hideh1').click(function() {$("div[class='titlewrapper']").hide();});
  • $('#showh1').click(function() {$("div[class='titlewrapper']").show();});
  • $('#toggleh1').click(function(){$("div[class='titlewrapper']").toggle();});

Example taken from here... docs.jquery.com


Use the following buttons to show and hide this blogs title.

No comments: