1.

How we can hide a block of HTML code on a button click using jQuery?

Answer»

The .HIDE() METHOD is used for hiding a particular element.

Example

// With the element INITIALLY shown, we can hide it slowly:

$( "#clickme" ).click(FUNCTION() {
   $( "#book" ).hide( "slow", function() {
      alert( "Animation done." );
   });
});



Discussion

No Comment Found