Hi, As you can see from the code below I have a simple js function
called getFormElements inTableRow(rowN ame). 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="parameter 12" id="parameter12 ">
<option value="1">casen umber</option>
<option value="2">analy st</option>
</select>
<div class='button'>
<A href='#' onclick="javasc ript:getFormEle mentsinTableRow
('where12');"> DELETE ROW </A>
<div></td></tr></table>
<Script jang=javascript >
function getFormElements inTableRow(rowN ame){
var nodeList = document.getEle mentById(rowNam e);
for (var i = 0; i < nodeList.length ; i++)
{
var node = nodeList[i];
alert(node.id);
}
}
<script>
called getFormElements inTableRow(rowN ame). 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="parameter 12" id="parameter12 ">
<option value="1">casen umber</option>
<option value="2">analy st</option>
</select>
<div class='button'>
<A href='#' onclick="javasc ript:getFormEle mentsinTableRow
('where12');"> DELETE ROW </A>
<div></td></tr></table>
<Script jang=javascript >
function getFormElements inTableRow(rowN ame){
var nodeList = document.getEle mentById(rowNam e);
for (var i = 0; i < nodeList.length ; i++)
{
var node = nodeList[i];
alert(node.id);
}
}
<script>
Comment