I need to display date from controller to view through jQuery in MVC4 razor.But it just displaying correctly.
To display date I used the below code:
$.each(data, function (index, el) {
console.log(el);
for (i = 0 ; i <el.length; i++) {
tr = $('<tr class="eachitem" />');
td = $('<td>' + el[i]["ID"] + '</td>').appendTo(tr);
td1 = $('<td>' + el[i]["Date"] + '</td>').appendTo(tr);
td1 = $('<td>' + el[i]["status"] + '</td>').appendTo(tr);
tr.appendTo('table');
}
});