T
thomasamillergoogle
Hi, As you can see from the code below I have a simple js function
called getFormElementsinTableRow(rowName). rowName is the ID of the
tableRow. I just want to use js to find the child ID's of all the form
elements in that particular tableRow. What am I doing wrong?
<table><tr id="where12" style="DISPLAY:none">
<td><select name="parameter12" id="parameter12">
<option value="1">casenumber</option>
<option value="2">analyst</option>
</select>
<div class='button'>
<A href='#' onclick="javascript:getFormElementsinTableRow
('where12');"> DELETE ROW </A>
<div></td></tr></table>
<Script jang=javascript>
function getFormElementsinTableRow(rowName){
var nodeList = document.getElementById(rowName);
for (var i = 0; i < nodeList.length; i++)
{
var node = nodeList;
alert(node.id);
}
}
<script>
called getFormElementsinTableRow(rowName). rowName is the ID of the
tableRow. I just want to use js to find the child ID's of all the form
elements in that particular tableRow. What am I doing wrong?
<table><tr id="where12" style="DISPLAY:none">
<td><select name="parameter12" id="parameter12">
<option value="1">casenumber</option>
<option value="2">analyst</option>
</select>
<div class='button'>
<A href='#' onclick="javascript:getFormElementsinTableRow
('where12');"> DELETE ROW </A>
<div></td></tr></table>
<Script jang=javascript>
function getFormElementsinTableRow(rowName){
var nodeList = document.getElementById(rowName);
for (var i = 0; i < nodeList.length; i++)
{
var node = nodeList;
alert(node.id);
}
}
<script>