change content and update div - fancebox

I have button on fancybox dialog;when I click it I call this function:\[code\] function F(){ $('#ID_OF_DIV').text("CHANGE TEXT!"); }\[/code\]if I close fancybox window and open again, text will be changed. but I need to change it Immediately. how can i do that?
 
Back
Top