When PHP script is pulled into my page using
$.ajax({
url: "/assets/inc/user-stream-list.php",
success: function (data) {
$(".user-stream-list").html(data);
}
});
It produces <a>
and I currently use
$('.col-l .feed a').click(function(e){
e.preventDefault();
});
To stop the links being able to be clicked but after I run the .ajax()
script the links become clickable.
Is there a way to prevent the links being clickable after the ajax has run?