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 4 of 4

Thread: Checkbox Submit

  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Checkbox Submit

    Hi there!

    I'm newbie to javascript and i can't make a script to submit form when you click on a checkbox. Is it possible?

    Thanks!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Code:
    <form name="myForm">
    <input type="checkbox" name="car" onClick="document.myForm.submit()">
    </form>

  • #3
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And is it possible to check if there are N checkboxes "checked"?

    I need to check if there are more than N and warn the user.

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by OpSiS
    And is it possible to check if there are N checkboxes "checked"?

    I need to check if there are more than N and warn the user.
    Perhaps you should post the codes you are working with so we can see what you are trying to do. And before you move the goal post again, it would be helpful to know how many is n and does n checkboxes need to be checked or just not more than n?

    .....Willy


  •  

    Posting Permissions

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