jQuery - Sample Interview Question (Junior Level)

Which of the following will hide the DIV below along with the space it reserved?

<DIV id="White" style="border:1px solid black;width:400px;height:500px">
Snow, Wine, Lion, Owl & Albatross
</DIV>





  1. $("#White").css('visibility','hidden');
  2. $("#White").hide();
  3. $("#White").css('display','none');
Tests in jQuery for Juniors

Test Name Difficulty Time (minutes) No. of Questions
jQuery Online Test for Juniors jQuery Junior 20 10