[Javascript] forms and js
Matt Barton
javascript at mattbarton.org
Wed Mar 3 10:36:26 CST 2004
Ugh. Don't like the look of that in the slightest. Special chars in
element names? Not for the likes of me...
Anyway... you could try (and my usual caveat[*] applies) something like
this:
<!-- ************************ -->
<form name="TESTTEST" action="">
<input type="text" name="(TEST)">
</form>
<script>
sControlName = "(TEST)";
TESTTEST[sControlName].value = 'HELLO';
</script>
<!-- ************************ -->
HTH
Matt
[*] Usual caveat: I've not tried this myself, and I've no idea if it'll
work, but it might help.
----- Original Message -----
From: Paul McGuire
To: [JavaScript List]
Sent: Wednesday, March 03, 2004 4:31 PM
Subject: [Javascript] forms and js
The below code wont work because of the brackets in the form name. I cant do
anything about those brackets the nature of the program means there there.
How can I write to that form text field with JS if brackets (or other
special characters) are there?
<form NAME="TESTTEST" action="">
<input type="text" name="(TEST)">
</form>
<SCRIPT>
TESTTEST.(TESTS).value = 'HELLO';
</SCRIPT>
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list