View Single Post
Old 01-23-2013, 01:01 PM   PM User | #3
javainbegginer
New to the CF scene

 
Join Date: Jan 2013
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
javainbegginer is an unknown quantity at this point
devnull69

Quote:
Originally Posted by devnull69 View Post
Why would you use eval() like this
Code:
eval("document.getElementById(\"thetbl"+i+"\").style.display='none'");
It is equivalent to
Code:
document.getElementById("thetbl"+i).style.display='none';
You should never use eval() ... it's considered very bad practice
Hi Devnull69,

thank you for your attention, that code has been advised to me by someone, I don't see any error on the javascript console regarding to that. I may do change that and use your helpful advise, but for now my main concern is to make the datetime picker work.
javainbegginer is offline   Reply With Quote