hope u find this useful
<html>
<head>
<title>Test Row Span</title>
<script language="javascript">
function SpanRows()
{
var Rows = txtRows.value;
tblTest.rows[0].cells[0].rowSpan = 2
}
</script>
</head>
<body>
<table id="tblTest" border="1">
<tr>
<Td>Test</Td>
<Td>Test1</Td>
</tr>
<tr>
<Td>Test2</Td>
<Td>Test3</Td>
</tr>
<tr>
<Td>Test4</Td>
<Td>Test5</Td>
</tr>
</table>
<input type="button" onclick="SpanRows()" value="Span">
</body>
</html>
Regards
Ganesh
|