[ad_1]
Okay, the answer:
First, i am declaring a function on top of my page, because i want to execute it on documentload and on ajaxcallback.
Then, on the bottom of my page i set
$(document).ajaxComplete(fu);
This is what makes my function executed when te ajax callback has finished, without the need of knowing the callback’s details.
[ad_2]
solved Execute jQuery code when AJAX postback occurs in PHP