|
| |
|
|
kitty6
Posts: 153 Joined: 10/15/2005 Status: offline
|
Option Group - 8/19/2008 15:30:18
I'm using the following code to enable a textbox based on a value of another field. I works just fine. How would I use that same code to enable an option button? I have three buttons in the group but not sure how to separate them? Thanks. document.getElementById("Standard1").disabled=false;
|
|
|
|
BeTheBall
Posts: 6381 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Option Group - 8/19/2008 17:47:24
You can do it the same way, IF you give each radio button an unique ID. Otherwise, you need to know that a group of radio buttons with the same name are part of an array. The first one is 0, the second 1, etc. So, to reference the radio button without an ID, it would be something like: document.formName.fieldName[0].disabled=false;
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|