how to append rows in table using jquery each function
$('#myTable tr:last').after('<tr>...</tr><tr>...</tr>');
//OR
$('#myTable > tbody:last-child').append('<tr>...</tr><tr>...</tr>');BY LOVE
Note : 1- 'tblEmployee' is the ID of the table body
$.each(Result, function (key, value)
{
$('#tblEmployee').append('<tr> <td>' + value.EmployeeId + '</td> <td>' + value.Name + '</td> <td>' + value.Gender + '</td> <td>' + value.StateId + '</td> <td>' + value.CityId + '</td> <td>' + value.PhoneNumber + '</td> <td>' + value.Salary + '</td></tr>');
})
Also in JavaScript:
- jquery on input
- javascript not equal
- How to make a timer in javascript
- tick.json code
- create react app with pwa
- regular expression escape character
- exceljs read file
- unordered list in react native
- install nodejs from ubuntu 18.04
- node sleep
- jquery form validation
- js get first letter of string
- razor pages and javascript
- how to push in object in javascript
- js remove readonly attribute
- javascript get last word in string
- angular attach component to body
- javascript find matching elements in two arrays
- save json file python
- npm font awesome 5 angular 7
- concise body arrow functions javascript
- how to run different node app on server different domains
- js if mobile browser
- javascript dynamic arrays