jQuery: get element from server onclick work
$(function() {
$('.class1 a, .class2 a').click(function(e) {
href = $(this).attr("href");
$.post(href,function(data) {
$('#content').html('');
$('#content').append(data);
});
});
});
if class2 back form server such as ..,that onclick function doesn't work on this class,how to fix this?