does the statically loaded #fav div wrap all #submits, or just one? i assume the issue is that your delegating it to an object that isn't high enough on the dom. try replacing #fav with body, or some wrapper element.
additionally, as commented above, you should not use ids more than once on a given page, so a class .submit would be preferable.
$('body').delegate(".submit", "click", function() {
var favid = $("input#favid").val();
var favsave = 'favid=' + favid;
$.ajax({
type: "POST",
url: "fav.php",
data: favsave,
success: function() {
$('#fav').fadeOut(100);
}
});
return false;
});
you'll probably need to add some context to those jquery selectors as well.