michell rosvlet wrote:Voowww
I seriously don't understand what the problem with Eval is. Since I am trying to bring new value for J every time i want to evaluate that. If I don't put that it will not display me the value of check boxes I am trying to retrive
I am sure by removing that my code will not start working the way I want it.
Have you considered using a JavaScript library (like jQuery, Prototype, basically anything)?
In any case--the point is that eval is almost certainly not the solution you want, but without further information, it's tough to provide any alternatives.
Also, it's a dangerous habit to rely on JavaScript's semicolon insertion mechanism--I'd counsel against it.