- 2
How to insert a checkbox in table?
do ans urgent ... i have to submit my practical... thank you
6 odpowiedzi
+ 2
<input type="checkbox" name="any name e.g c1">
+ 1
<form>
<input type="checkbox" name="gender" value="male">
+ 1
<input type="checkbox">Male<br>
<input type="checkbox">Female<br>
0
thank you soooo much mahima ...
- 1
i did the same... bt m nt getting d output
- 1
See this will work.... try this code....
<html>
<head>
</head>
<body>
<table id="tbl" border="10">
<thead>
<tr>
<td><input type="checkbox" id ="chckHead"/></td>
<td>First Row</td>
<td>Second Row</td>
<td>Third Row</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>2</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>3</td>
<td>3</td>
<td>3</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>4</td>
<td>4</td>
<td>4</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>5</td>
<td>5</td>
<td>5</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>6</td>
<td>6</td>
<td>6</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>7</td>
<td>7</td>
<td>7</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>8</td>
<td>8</td>
<td>8</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>9</td>
<td>9</td>
<td>9</td>
</tr>
<tr>
<td>
<input type="checkbox" class = "chcktbl" />
</td>
<td>10</td>
<td>10</td>
<td>10</td>
</tr>
</tbody>
</table>
</body>
</html>