In the Web page we have a table link, if we click on that
link all the contents under that link will be sorted
(asscending/Descending). Now i want to check in which order
the list is ? for that i need to get the data in to some var
How can i get that cells data?
Answer / ganesh
To get data from table cells, u shld use innerHTML.
For that u need to give id's for all the TD's in the Table.
Try the below coding:
<script language="javascript">
function getdatas()
{
var data=document.getElementById('data6').innerHTML;
alert(data);
}
</script>
</head>
<body>
<table width="200" border="1">
<tr>
<td id="data1">ganesh</td>
<td id="data2">magesh</td>
<td id="data3">tanveer</td>
</tr>
<tr>
<td id="data4">satya</td>
<td id="data5">siddiq</td>
<td id="data6">bimal</td>
</tr>
<tr>
<td id="data7">jenson</td>
<td id="data8">nasrulla</td>
<td id="data9">dayanand</td>
</tr>
</table>
<input type="button" value="Get" onclick="getdatas()" />
</body>
| Is This Answer Correct ? | 1 Yes | 0 No |
what will this do? function show_alert value="Show User" eval("x=10; y=20; document.write(x*y)");
why script is client dependant.
How do you insert record into scripting using siebel crm
QTP not able to select multiple row selection when new rows are added
what is the fullform of URL or URI?
database acl level has manager access.his name is listed in author and Reader fields. but he didn't sea a documents what is the reason?
I have installed QTP version 9.0. I have installed Mozilla firefox version 2.0. But QTP "Record and Run settings" in WEB tab shows FIREFOX 1.5 in drop down to run session begins. So QTP does not record anything which I type in firefox. How can i recognise firefox 2.0 and how can i update browser version in QTP?
what is the difference between 32 bit O.S n 64 bit O.S?
'IMP' is not recognized as an internal or external command, operable program or batch file. this is the error message i am getting when i importing dmp for the backup. where is the problem?
What is a Scripting Language?
what is difference between AS2 and AS3.?
please send the scrpit driver program