View Single Post
  #2  
Old 9th March 2009, 17:18
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
Default

javascript is typeless, so a variable holds whatever data of whatever type you stick into it

Change
Code:
document.getElementById(div)
to

Code:
document.getElementById($div)
Though... need the $div to references the variable created.
Reply With Quote