How can I use JavaScript/jQuery to populate a popup-window with data from JS-variables in the parent page?
In my example I have an array of filenames. I list at most five in the parent window and if there's more I want to provide a link that opens a popup window and lists each post in the array.
So if I open a popup that contains a <ul id="all_files"></ul>
, how can I add <li>
-items to that list?