<table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Check Box</th> <th>Category Name</th> <th>Category Details</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <tr> <td>Other browsers</td> <td>All others</td> <td>yes</td> <td>for</td> <td>Ummm</td> </tr> </tbody> </table>
$(document).ready(function() { debugger $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "WebForm5.aspx/BindDatatable", data: "{}", dataType: "json", success: function (dt) { for (var i = 0; i < dt.d.length; i++) { $("#example1").append("<tr><td> <input type='checkbox' /></td><td>" + dt.d[i].CategoryID + "</td><td>" + dt.d[i].Name + "</td><td>" + dt.d[i].description + "</td><td> <button type='submit'>Submit</button></td></tr>"); } }, error: function (result) { alert("Error"); } }); });
<thead>
<tbody>