Forum Moderators: open

Message Too Old, No Replies

New to JavaScript

         

scoobydoo987

10:02 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



Does this look corret? Will it work? If not what do you think should be modified? I am a little new to JavaScript.

If linerYear(4) was 1999 and linerMake was Toyota then linerText should read:
1999 Toyota

var linerText = document.forms[0].elements["linerYear(4)_" + vid].value;
linerText += " ";
linerText += document.forms[0].elements["linerMake_" + vid].value;

bibby

6:14 am on Aug 18, 2005 (gmt 0)

10+ Year Member



reminds me why I love PHP...
I take it it's not working?

what is "vid"?
and is there a document.forms[1]?

If you apply a name to your form, btw,
you can should be able to call it up my name:

document.myform.elements
(or if you have, and name=elements, then just document.elements)