For example I\'ve got the simple code:
Download file 01
var myFilename = []; $("ul.list li a").each(function() { var href = $(this).attr('href'); var idx = $(this).attr('href').lastIndexOf('/'); myFilename.push((idx >= 0) ? href.substring(idx+1) : href); });