$.ajax({
url: "/Admin/GetUserByFirstName/" + $("#data").text(),
method: "get",
dataType: 'html',
success: function(result) {
$("#searchuserbutton").click(function() {
$("#fetchdata").html(result);
});
}
});
I want to concatenate the Url of ajax call with a string that i want to search by putting in the ajax call in the action of controller