AJAX loaded links unrecognized by jQuery
The code below loads a page that has html links on it into a div but jQuery can't "see" the AJAX loaded links.
Thanks for any help.
$(document).ready(function(){
$("#cats a").click(function(event){
catID=this.id
$.ajax({
url: 'fetchRests.php?catID='+catID,
success: function(response) {
$("#rests").html(response);
},
error: function(xhr) {
alert('Error! Status = ' + xhr.status);
},
});
event.preventDefault();
});
});