Hello,
for example I have
Now I have little JavaScript:Code:<form name="formname"> <INPUT TYPE="hidden" name="test" value="test1"> <INPUT TYPE="hidden" name="two" value="test2"> <INPUT TYPE="hidden" name="other" value="test3"> <INPUT TYPE="hidden" name="other" value="test4"> <INPUT TYPE="hidden" name="test" value="test5"> </form>
Which shows "test1", and works in NN and IE.Code:alert(document.formname.test[0].value);
Now I need to be able to get text by passing 'name'
of the object, which works in IE like this:
Now, how do I pass result from the function, to 'prefill'Code:alert(document.formaname[getFromText()][0].value); function getFromText() { return "test"; }
the required parameter (document.formname.<PARAM>[0].value), because example above not working in NN.
Or let's say I need something similar for NN.
Thank you very much, I really need it.
John.




Bookmarks