What is the best way to write a javascript function that will perform the same actions as the jquery hide() and show() methods?

  • It's simple: there is a brief instruction on javascript.ru. - ling

1 answer 1

 var obj = document.getElementById('ELEMENT'); obj.style.display = 'none' =====> $.hide(); obj.style.display = 'block' =====> $.show(); 
  • @ROOT and how? :) - Zowie
  • @ROOT well, this is understandable, but what about animation? - Zow
  • Animation of .slideUp (), .slideDown (), .slideLeft (), .slideToggle () - Lieutenant Jim Dangle