Skip to content

Instantly share code, notes, and snippets.

@clavery
Forked from anonymous/gist:1445415
Created December 8, 2011 00:08
Show Gist options
  • Save clavery/1445432 to your computer and use it in GitHub Desktop.
Save clavery/1445432 to your computer and use it in GitHub Desktop.
function download_all_checked(frm){
// if we got this far, we should try to download
// all the checked boxes.
for (var i = 0; i < document.frmbook.elements.length; i++) {
var e = document.frmbook.elements[i];
if( e.name == 'allbox' ){
continue;
}
// if its checked and
// has a book id DL it.
if( e.checked ){
//alert("e.value=" + e.value);
frm.bookID.value = e.value;
frm.submit();
}
}
}
//------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment