YES!.. that's it! Thanks, now I understand.
So, if I needed to use the FORM to get to the value of terriprod...I have a
function that verifies the values of different elements of the form and
return TRUE if all information is OK...
How would I do that?
HDumas
"Martin Honnen" <ma*******@yahoo.de> a écrit dans le message de
news:41***********************@newsread2.arcor-online.net...
HD wrote:
<tr><td><input type="radio" name="terriprod" value="P"
onClick="javascript:alert('la valeur de terriprod
est: ' + this.value); alert('la valeur de terriprod est: ' +
this.form.terriprod.value);">
The first alert shows me the value as "P" but the second alert tells me
the value is "undefined"
Can someone explain to me why this is?
well you haven't shown enough but it is likely that you have other
<input name="terriprod">
elements in that form and then
this.form.terriprod
returns an array/a collection of the elements with that name
--
Martin Honnen
http://JavaScript.FAQTs.com/