I have Dynamic Table .Its 3rd column display Hyperlink records..On Click of Hyperlink ..It should redirect to new Window
this is my function :
function getErrorStatusList() {
var serve = JSON.stringify({ program: $("#proselct option:selected").text() });
$.ajax({
type: "POST",
url: "UFZillaErrorStatus.aspx/GetErrorStatusList",
data: serve,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$("#result").empty();
obj = (typeof response.d) == 'string' ? eval('(' + response.d + ')') : response.d;
var output = "<table id='tblResult'><tr><th>Serial No.</th><th>UFZillaID</th><th>MZillaID</th><th>Status</th></tr>";
for (var x = 0; x < obj.length; x++) {
output += "<tr><td>" + (x + 1) + "</td><td>" + obj[x].IssueID + "</td><td>" + obj[x].EMID + "</td><td>" + obj[x].EMStatus + "</td></tr>";
}
output += "</table>";
$("#result").append(output);
},
error: function () { alert("Server Error!!"); }
});
How to create function to click on HyperLink data ..I tried yo give id to element ("EMID") and create function like this ;
$("#EMID").click(function () {
});
But this doesnot hit ....
Any Suggestion would be Helpful