- 2

How to insert a checkbox in table?

do ans urgent ... i have to submit my practical... thank you

20th Jul 2016, 8:49 PM
Darshan
6 Réponses
+ 2
<input type="checkbox" name="any name e.g c1">
21st Jul 2016, 3:42 AM
Satyajeet Premnath Gaur
Satyajeet Premnath Gaur - avatar
+ 1
<form> <input type="checkbox" name="gender" value="male">
21st Jul 2016, 3:55 AM
Divya garg
+ 1
<input type="checkbox">Male<br> <input type="checkbox">Female<br>
21st Jul 2016, 6:18 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar
0
thank you soooo much mahima ...
21st Jul 2016, 7:01 AM
Darshan
- 1
i did the same... bt m nt getting d output
21st Jul 2016, 6:21 AM
Darshan
- 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>
21st Jul 2016, 6:40 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar