I am having problems with appended code generated from an ajax post
request. The code is appended correctly, but the problem is that the
anchors in the appended code do not work. The ancors should return
false and should work with a jquery function but they don't don't and
clicking on them the user goes directly to the url in the href tag.
I guess it's something to do with DOM... but I can't make it work
$.post("script.php", { param1: value1, param2: value2 },
function(data) {
$("#calendarbox").fadeOut("slow");
$("#calendarbox").empty();
/$("#calendarbox").append(data).fadeIn();
}
);
No comments:
Post a Comment