blob: ac90650c364df2f8ab02207f5ce4872fd4f76fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<html>
<head>
<style>
table { empty-cells: show; }
</style>
<script>
window.onload = function() {
var thetable = document.getElementById("thetable");
var input = document.getElementById("input");
thetable.rows[1].cells[2].appendChild(input);
}
</script>
</head>
<body>
<table border="1" id="thetable">
<thead>
<tr>
<th>col1</th>
<th>col2</th>
<th>col3</th>
<th>col4</th>
<th>col5</th>
</tr>
</thead>
<tbody style="overflow-y:auto;overflow-x:hidden;">
<tr>
<td>val1</td>
<td><input maxlength="6" type="text" id="input" value="text" size="6" /></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>val2</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
|