See the following for deails: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
Karl Rudd On Thu, Oct 30, 2008 at 1:27 AM, Martin Sarsini <[EMAIL PROTECTED]> wrote: > > Hi to everyone > 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(); > } > );