Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2003
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Maximum Number of Checkboxes Selected

    I have a form with 20 checkboxes. I want to allow the user to select up to 7 at a time, but no more than 7. How can I do this?

    Here is the code I am using:

    <input name="c1" type="checkbox" value="-1">
    <input name="c2" type="checkbox" value="-1">
    <input name="c3" type="checkbox" value="-1">
    <input name="c4" type="checkbox" value="-1">
    etc.

  • #2
    New Coder
    Join Date
    Apr 2003
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nevermind



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •