[Nfb-web] java script glitch

Bryan Schulz b.schulz at sbcglobal.net
Mon Jan 7 00:23:16 UTC 2013


hi,

after reading the sample found at:
http://www.javascriptkit.com/script/script2/checkboxlimit.shtml

any idea why this won't fire after 8 checkboxes are selected?
does it matter if the java script function is in an external .js file?
i have a feeling it has something related to the SelDrvr[] checkbox array.

form html code:
<form id="drivers" name="drivers" action="teamsummary.php" method="post" 
align="left">

sample checkbox line generated from php:
<input type="checkbox" name="SelDrvr[]" tabindex="1" 
value=Antron_Brown$1,400,000>Antron_Brown$1,400,000

on same page with the form:
<script type="text/javascript">
checkboxlimit(document.forms.drivers.SelDrvr[], 8)
</script>

Bryan Schulz





More information about the NFB-Web mailing list