Skip to content

Instantly share code, notes, and snippets.

Created December 8, 2011 00:03
Show Gist options
  • Save anonymous/1445415 to your computer and use it in GitHub Desktop.
Save anonymous/1445415 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