Is there a way to assign an Id to an Input Text Field?

Is there a way to assign an Id to an Input Text Field?

  
Hi, I have a collection of items in javascript and I want to assign the Id's of my input text field based on the properties of componentForm so that I can do:

for (var component in componentForm){
     document.getElementById(component).value = '';
     document.getElementById(component).disabled = false;
}



Thanks!
I did fixed my own problem. Thanks anyways. :)
Hi Gilbert,

Did you noticed, if you define the input widget name, the Id property value will be available?



Best regards.
Daniel Martins