Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically referencing a select HTML control
Message
From
10/07/2012 02:27:37
 
 
To
09/07/2012 13:53:25
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01547909
Message ID:
01547978
Views:
63
This message has been marked as the solution to the initial question of the thread.
>I have a javascript function. In it, I am receiving an ID. This is between 1 and 50. The function has to be generic and capable of establishing a reference to one of the 50 select HTML controls which exists on the form. One of the goal is to be able to disable or enable the control based on the ID received as a parameter. Anyone has done that before?

From your description of the problem (and assuming the parameter passed in is the Id of the control) all you would need would be:
function changeControl(theId){
document.getElementById(theId).disabled = true;
//etc.
}
so I assume I have not understood the question correctly ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform