I have a popup using Fancybox, inside it I have a div, I need to dynamically change using Javascript the text of it. I'm using the following code in the click of a button call:
$('#id-da-div').html('Novo texto');
This simple code works anywhere on my site, but when the div is inside Fancybox it does not work. It does not make any mistake, it simply does not update the html within the div.
It should be something from Fancybox, I need to solve it by putting a counter inside the popup.
Thank you.