http://jsfiddle.net/samertaha/Y2ULV/
kindly see the visibility sample up here ,
in the first rows of the javascript , they declared some variables , but i couldnt understand why they declared a variable named toggle with no value or type.
thanks.
// Get references to page elements and create a link dynamically
var intro = document.getElementById('intro'),
dets = document.getElementById('details'),
a = document.createElement('a'),
toggle; <- here i cant figure why they declared toggle ... !!!
the whole example in jsfiddle is an example showing how we can use the visibility css proporty.....
thanks