<script>
debugger;
$(document).ready(function () {
$('#btn-view').click(function (value) {
var monthname = $('#list option:selected').text();
var url = 'attendancemanagement/attendance/
[email protected]&branchid=1&
[email protected]&
[email protected]&seletedmonth='+monthname;
$.ajax({
type: 'POST',
dataType: 'json',
url: url,
data: '',
success: function (Data) {
var table = $('#tblattendance');
table.html('');
table.append('<thead>');
table.append('<tr>');
table.append('<td>Date</td>');
table.append('<td>Day</td>');
table.append('<td>In Time</td>');
table.append('<td>Out Time</td>');
table.append('<td>First Half</td>');
table.append('<td>Second Half</td>');
table.append('<td>Remarks</td>');
table.append('</tr>');
table.append('</thead>');
table.append('<tbody>');
var list = Data.attendance;
$.each(list, function (i, item) {
table.append('<tr>');
table.append('<td>' + item.Date + '</td>');
table.append('<td>' + item.Day + '</td>');
table.append('<td>' + item.Intime + '</td>');
table.append('<td>' + item.Outtime + '</td>');
table.append('<td>' + item.Firsthalf + '</td>');
table.append('<td>' + item.Secondhalf + '</td>');
table.append('<td>' + item.Remark + '</td>');
table.append('</tr>');