Building an array for use by JavaScript
I'd like to use the jQuery selector to scan through the DOM and build an array of video file names, but I don't want to apply any jQuery methods to the array elements. I'll use the array as a stack of files to preload, one at a time. I'll launch a preload of the top one and then pop it off the array. When that load completes I'll launch a preload of the next top one and pop it off, etc. There's no jQuery needed here, except to gather up the array elements at the start of the operation. How can I get jQuery to build the array for me and then get out of the way and let me access it with pure JavaScript?
Thanks for any ideas.