Haret ha scritto:
function toggleCommentForm(postid){ // Function content }
if I understood: $('#elem').live(function() { // don't know what postid is, but maybe you can retreive it here: this.id; // id of the clicked element: $(this).parent().attr('id'); // id of the parent element toggleCommentForm(postid); }); Bye :-) -- gianiaz.net - web solutions via piedo, 58 - 23020 tresivio (so) - italy+39 347 7196482