0
I have a popup using Fancybox, inside it I have a div, I need to change dynamically using Javascript the text of it. I am using the following code at the click of a button call:
$('#id-da-div').html('Novo texto');
This simple code works anywhere within my site, but when the div is within the Fancybox does not work. It does not give any error, it simply does not update the html inside the div.
It must be something from Fancybox, I need to solve by putting a counter inside the popup.
Thank you.
Try selecting the element with the browser panel.
– Sam
I already did, I inspected the element and the html of the div remains static, even without showing errors in the console.
– Anderson Nunes