mr*******@gmail.com wrote:
I have a form created that lets students pick course from a checkbox
list. But I only want them to be able to select 3 courses max. How
do I write a for loop that will them pick no more than three courses?
You don't. You count the checked checkboxes instead when a checkbox was
clicked. Since the corresponding mouse events bubble in all DOMs, you
need only one event listener per event for all checkboxes.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16