$(document).on('click', '#btnEdit', function () {
debugger;
var empID = $(this).attr('data-id');
$.ajax({
type: 'POST',
url: '/Employee/UpdateOrEditEmployee',
data: "{Empid:'" + empID + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (data) {
debugger;
if (data == 0 || data == null) {
debugger;
data.length == 0;
//clear();
$('#txtEmpID').val();
$('#txtEmpName').val();
$('#txtDesignation').val();
$('#txtEmpimage').val();
$('#txtSalary').val();
$('#txtEmail').val();
$('#txtDepartment').val();
}

Ruchi SharavatRank #1,714 · 885 reputationPosted Apr 13, 2018, 1:55 AM EDT
Kaushik DhameliyaRank #1,518 · 1K reputationPosted Apr 12, 2018, 11:34 PM EDT
sangeetha kRank #8,588 · 219 reputationPosted Apr 13, 2018, 12:19 AM EDT
Kaushik DhameliyaRank #1,518 · 1K reputationPosted Apr 13, 2018, 12:28 AM EDT
sangeetha kRank #8,588 · 219 reputationPosted Apr 13, 2018, 12:31 AM EDT
Kaushik DhameliyaRank #1,518 · 1K reputationPosted Apr 13, 2018, 12:43 AM EDT