-
disabling form elements with array names
my form looks like this:
<select name="name[sel]">
<option value="other">OTHER</option>
<option value="martin">Martin</option>
</select>
<input type="text" name="name[txt]">
now when the user selects OTHER, it will disable the text input. changing the names of the variables is not an option, and using this.form.elements[1].disabled is not an option.
the question is, how do i reference name[txt] in javascript to disabled the field?!
Similar Threads
-
Replies: 2
Last Post: 11-01-2001, 11:13 PM
-
Replies: 1
Last Post: 08-15-2001, 01:18 PM
-
By Phil Pastor in forum Mobile
Replies: 0
Last Post: 10-24-2000, 03:38 PM
-
By Brian in forum authorevents.mitchell
Replies: 1
Last Post: 10-16-2000, 09:24 PM
-
By John Nelson in forum VB Classic
Replies: 0
Last Post: 08-22-2000, 10:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks