Created
December 8, 2011 00:03
-
-
Save anonymous/1445415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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