Dynamically limit maximum number of checkboxes selectable
<p>I found many scripts to limit max number of checkboxes that can be selected in a page with javascript, for example here is one:</p>

<p><a href="http://www.plus2net.com/javascript_tutorial/checkbox-limit.php" rel="nofollow">http://www.plus2net.com/javascript_tutorial/checkbox-limit.php</a></p>

<p>However I don't need a specific number, but a VARIABLE one.</p>

<p>This means that I need to have a percentage limit instead of just a number.</p>

<p>For example, limit user selection to max 30% of the checkboxes in the page.</p>

<p>Any help on how to achieve this is highly appreciated!</p>
