1 Reply Latest reply on Jan 11, 2008 1:06 PM by Dan Bracuk

    Counting Checkboxes

    Suchi
      I need to count the number of checkboxes that are checked. I want to display a message if the count exceeds 5. Can anybody please tell me how to count the checkboxes and redirect the user to the action page if the count is 5 or less.

      <form name="issuelist">
      <input type="checkbox" name="issue1" value="1">
      <input type="checkbox" name="issue2" value="1">
      <input type="checkbox" name="issue3" value="1">
      <input type="checkbox" name="issue4" value="1">
      <input type="checkbox" name="issue5" value="1">
      <input type="checkbox" name="issue6" value="1">
      <input type="checkbox" name="issue7" value="1">
      </form>