The idea being to pick up one of the values in field SC_1 on the form. Now wherever I have looked whilst trying to get this work it says that this should be ok. However the Javascript is failing at that point. (Mucho use of ALERT to pin it down.)
Lots of pratting around later I can tell that in fact its the document.forms[0].Sc_1[i].value that is not working.
If I remove the .value (yes I know we need it but you get so desperate you’ll try anything) then I get ‘undefined’ when I display the result.
Any bright ideas out there? (Am debugging someone elses code & the odd comment would not have gone amiss!)
Subject: RE: Sorry - braindead & need a JavaScript Guru
Sc_1 is a radio button.Score_1 is a text field.
Background: the app is an online survey. So the user ticks a radio button & behind the scenes the script is supposed to translate ‘AGree’ to a numeric value. Sc_1 is the list of numeric values .