$('#btnGetDetails').click(function(){
var tr = $(lnk).closest('tr');
var Id = $(tr).find('td').eq(1).html();
$.ajax({
url: "/Home/Index",
type: "GET",
data: { 'GetId': Id },
contentType: "application/json;charset=UTF-8",
dataType: "json",
success: function (result) {
$('#file').attr(result.photoPath);
alert(result.photoPath)
},
});
});

Darshan ShahRank #1,135 · 1.6K reputationPosted Jul 29, 2020, 8:29 PM EDT
Narasimha p70 reputationPosted Jul 29, 2020, 8:34 PM EDT