I am making a live search where when user type in a search box, results start showing up inside a table. A <td> of this table should display the result as a text link.
I have this AJAX script:
success:function(res)
{
$("#patient_name_table tr").fadeOut(500);
$.each( res, function( key, row ) {
//alert(row['patient_name']);
$("#after_tr_2").after("<tr><td>"+row['patient_name']+"</td></tr>");
});
},
Results are shown properly, but when I tried to add an <a href> to it like:
success:function(res)
{
$("#patient_name_table tr").fadeOut(500);
$.each( res, function( key, row ) {
//alert(row['patient_name']);
$("#after_tr_2").after("<tr><td><a href='patients.php?patient='"+row['patient_name']+"></a></td></tr>");
});
},
I have the same exact row shown but clickable text is like hidden.