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

The .hide() method is used for hiding a particular element.



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

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

Suggest An Answer

No suggestions avaliable!

Latest post from JQuery interview questions

Ask Question