I have the following function that I found and modified from another post
function setValues(evt, table){
var el;
evt=evt||window.event;
el=evt.target||evt.srcElement;
for(;el&&el!=table;el=el.parentNode)
//if(el.nodeName.toLowerCase()!="th")
// if(el.nodeName.toLowerCase()=="th")
// continue;
if(el.nodeName.toLowerCase()=="tr")
break;
document.ds.server.value = el.cells[0].textContent;
document.ds.drive.value = el.cells[1].textContent;
document.ds.submit();
}
I'm calling it in the onclick event for a Table with id="ds". It works great
by allowing me to click any row in the table and passing the first 2 cells
as hidden input fields, but I can't figure out how to skip the Table heads.
I'm using another script to be able to sort the rows by clicking the table
head row and I don't want this to run when I do that. The commented lines
are the things that I have tried so far and failed.
Any help appreciated.
Matt