Here is my current JS:
- Code: Select all
<Script Language=JavaScript>
var currCount = 0;
var maxCount = 3;
function CountChecks(isBox){
if (isBox.checked){currCount++}
else {currCount--}
if (currCount > maxCount)
{
alert('You may only select ' + maxCount + ' magazines for this package.');
currCount--;
isBox.checked = false;
}
}
</Script>
How may I add that there must be 3 checked or else it won't go on???

