Twilo: auf ein Form-Element zugreifen

Beitrag lesen

Hallo,

ich habe ein Formularelement wie folgt erstellt
<input name="option[1]" type="hidden" value="1" />
wenn ich per JavaScript folgendes aufrufe
alert(document.forms[0].option[1].value);

Opera gibt mir folgende Fehlermeldung aus

----------------------------------------------------------------------------
JavaScript - http://xxx.de/index.php
Event thread: load
Error:
name: TypeError
message: Statement on line 90: Could not convert undefined or null to object
Backtrace:
  Line 90 of inline#1 script in http://xxx.de/index.php
    alert(document.forms[0].option[1].value);
  Line 1 of  script
    elementeAktualisieren();
  At unknown location
    [statement source code not available]
----------------------------------------------------------------------------

wie kann, bzw. muss ich diese Fehlermeldung "Could not convert undefined or null to object" verstehen?

mfg
Twilo