[Javascript] variable problem
Filipiak, Bob (Contractor)
filipiab at atsc.army.mil
Thu Jun 7 09:11:03 CDT 2001
Try document.game_assesment.row+ i +"_"+ j +.checked = true;
Bob Filipiak (Contractor)
MCP
-----Original Message-----
From: rastlore at yahoo.ca [mailto:rastlore at yahoo.ca]
Sent: Thursday, June 07, 2001 9:57 AM
To: Javascript at LaTech.edu
Subject: [Javascript] variable problem
Hello, I am having a problem, I am a newbie at this javascript stuff
by the way. I was wondering why the below works (more specifically I
am asking about the variables "i" and "j" why it works in the eval
and not in the other statement is my question) :
if (eval("document.game_assesment.row"+ i +"_"+ j +".checked") ==
true)
but this give me an error :
document.game_assesment.row"+ i +"_"+ j +".checked = true;
I have also tried this, but it gives and error as well :
document.game_assesment.row'+ i +'_'+ j +'.checked = true;
The button's I am tried to access is :
<FORM NAME="game_assesment">
<INPUT type="radio" NAME="row0_0" VALUE="0">
<INPUT type="radio" NAME="row0_1" VALUE="0">
<INPUT type="radio" NAME="row0_2" VALUE="0">
</FORM>
Thanks for any help you could offer.
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010607/44f967d3/attachment.htm>
More information about the Javascript
mailing list