[CODE]
if(this.selection.document.x.checked==true)
document.selection.x.disabled=true;
selection is the name of the form and type is the name of the checkbox in this html form.What I want is to know if that checkbox is checked or not by use of javascript.However the problem is the name of the checkbox is dynamic.So I should write a dynamic statement in javascript to get the variable.
in PHP code I assigned the dynamic name of the chechbox into variable x.
However in javascript when I write “this.selection.document.x.checked==true”,
it doesnt work because it recognizes x as x.However I want it to recognize x as the dynamic value that I got.Let’s say the value of x is “checkbox1val”.
I want to mention “chechbox1val” when I write “this.selection.document.x.checked==true”, not x itself.