Tag Archives: javascript hack

Recommended Javascript-hack

Javascript Hack – How to Hide/Show Div Elements!

I’ve been doing a lot of PHP/Javascript/AJAX programming for a new Twitter site and I have to say, there’s a REALLY easy way to hide and show your entire div elements without doing much with Javascript but using the document.getElementById(‘whateveridhere’).removeAttribute(‘id’);.

Whatever you want to hide, (for example a questionnaire that you want to show on the top of the webpage if user clicks a button), you can easily do so by putting ALL your code under a <div> element with “display:none” tag.

So, here’s an exam

Click Here to Read Full Article

Leave a comment