This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hello, in my application i am having table with parent /child relation.on click of a cell in parent table i am displaying respective child table.this works fine, but now the prob is,when i click on a row in parent table,i want to retreive value of only first cell which is the primary key for child table. if i do .innerText to the <TR> i get all the column values. is there any way out to this?i want this to work out in both IE and Netscape this is a bit urgent thanks in advance -vrunda
If var trRef is point to your TR, than trRef.firtsChild will point to first TD. It should work in NS6 and IE5.5+ Or, you could assign id to your TR tags, and to first TD in TR, so knowing id for TR you can get id for corresponding TD, and use document.getElementByID()
Joined: Dec 03, 2001
hello thanks a lot Yuriy Fuksenko,i will try to work it out -Vrunda divekar