I have a iframe and I used the jquery .data() function to save some element from the iframe.
I attached them to the body like this $('body').data('clicksData', myClicksData);
Now i need to access that information from out of the iframe, I tried just doing this var allData = $('body').data('clicksData')[0]; but it didnt work.
any ideas how to do this?
I have a iframe and I used the jquery .data() function to save some
Share
Use this :
assign some id to your iframe like this :
and use this jquery code to access that iframe