title: Put limit on multi selection box html in PHP
body: <p>I am woking on Joomla CMS. I want to add limit on this multiple selection box using javascript please help me to do this. I am creating my list by using the following code:</p>
  
  <pre><code>&lt;div class="controls" &gt;
  &lt;?php 
      $attribs = "class='input-xxlarge required' name='selection[]' id='selection[]' onchange='Notify();' size='5' multiple='multiple' ";
      echo $select-&gt;getSelectCategoryTree('id_category[]', explode(',', $this-&gt;row-&gt;id_category), '', $attribs, '', true); 
  ?&gt;
  &lt;/div&gt;
  </code></pre>