Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var allDownloads = new Array();
- currentItem = 0;
- function downloadNext() {
- if(currentItem==allDownloads.length) {
- return;
- }
- console.log(currentItem);
- console.log(allDownloads[currentItem])
- allDownloads[currentItem].click();
- setTimeout(downloadNext,2000)
- currentItem=currentItem+1;
- }
- $("td[title='Ver']").each(function(i, obj){
- allDownloads[allDownloads.length] = $(obj).find("input");
- });
- console.log(allDownloads);
- downloadNext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement