D
daveyand
Hey guys
I have a 2 table rows with 2 cells each. Cell 0 of each row has a
select.
E.g.
<tr id="row_0">
<td id="cell_0">
<select id=select_1> <option>SELECT 1<option></select>
</td>
<td id="cell_1">
<select id=select_2> <option>SELECT 2</option></select>
</td>
</tr>
What i am trying to do is switch the two select boxes round. So cell_0
will have the select with an id of select_2 and not select_1.
But i dont want to do innerHTML, as the selects are in an array of
select references. (All abit complicated i guess)
So i wanted to go down the
document.getElementById(select_2).parentNode =
document.getElementById(cell_0);
I have tried this but it doesnt seem to work.
Does anyone know of a way to do this?
Cheers
Andy
p.s. Hope it makes sense./...
I have a 2 table rows with 2 cells each. Cell 0 of each row has a
select.
E.g.
<tr id="row_0">
<td id="cell_0">
<select id=select_1> <option>SELECT 1<option></select>
</td>
<td id="cell_1">
<select id=select_2> <option>SELECT 2</option></select>
</td>
</tr>
What i am trying to do is switch the two select boxes round. So cell_0
will have the select with an id of select_2 and not select_1.
But i dont want to do innerHTML, as the selects are in an array of
select references. (All abit complicated i guess)
So i wanted to go down the
document.getElementById(select_2).parentNode =
document.getElementById(cell_0);
I have tried this but it doesnt seem to work.
Does anyone know of a way to do this?
Cheers
Andy
p.s. Hope it makes sense./...