southbeach
Programmer
OK - I'm working on a script with the objective to change the properties of an input tag dynamically. The catch is that I do not know the ID for the input tag.
You see, I am also adding these tags dynamically using insertRow() and insertCell(). Further, the rows could be removed using deleteRow(). If that is not all, I am using a fixed name like pieces[] as I am intending to process the form with a PHP script and expect the data to be processed in a form of an array.
One thing I am doing is that each rows will have a fixed number of columns. This allows me to use a fixed number for tag placement. I am using conditional code to set or unset the innerHTML of a cell based on values chosen on associated fields.
So, if value in field (A) requires that input tag in column (7) be entered, I need to change the properties of input tag that appears within the column (7) node.
Right now I am inclined to simply changing the entire innerHTML content and have user do his her thing. I am hoping I could just change the className or something.
What say you?
Thank you all in advance for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
You see, I am also adding these tags dynamically using insertRow() and insertCell(). Further, the rows could be removed using deleteRow(). If that is not all, I am using a fixed name like pieces[] as I am intending to process the form with a PHP script and expect the data to be processed in a form of an array.
One thing I am doing is that each rows will have a fixed number of columns. This allows me to use a fixed number for tag placement. I am using conditional code to set or unset the innerHTML of a cell based on values chosen on associated fields.
So, if value in field (A) requires that input tag in column (7) be entered, I need to change the properties of input tag that appears within the column (7) node.
Right now I am inclined to simply changing the entire innerHTML content and have user do his her thing. I am hoping I could just change the className or something.
What say you?
Thank you all in advance for your assistance!
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.