Posted By:
Eric_k
Posted On:
Tuesday, June 7, 2005 03:17 PM
Use the following function to display cell contents:
function search(tbl, val){
if(val.length<1)
return;
for (r=0;r len=tbl.rows[r].cells.length;
for(c=0; c text = tbl.rows[r].cells[c].innerText;
if(text.indexOf(val)>-1)
alert(text);
}
}
}
Your table should have an id,e.g. "myTable" and be enclosed in a form that will go like this: