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 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2007
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Change checkbox with checkbox

    Hi,

    If I have two check-boxes and one is already checked and then the is checked, how would I get it to uncheck the first one using JavaScript.

    Thanks,
    Cs1h

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Can't you use a radio group then? See http://www.w3schools.com/html/html_forms.asp
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,091
    Thanks
    38
    Thanked 498 Times in 492 Posts

    Lightbulb

    Quote Originally Posted by cs1h View Post
    Hi,

    If I have two check-boxes and one is already checked and then the is checked, how would I get it to uncheck the first one using JavaScript.

    Thanks,
    Cs1h

    Similar question asked and answered here: http://www.webdeveloper.com/forum/sh...d.php?t=223581


  •  

    Posting Permissions

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