www.webdeveloper.com
Results 1 to 3 of 3

Thread: if radio button two chose yes, radio one chose yes too

  1. #1
    Join Date
    Nov 2007
    Posts
    113

    Unhappy if radio button two chose yes, radio one chose yes too

    I have two row radio button , I want when button one chose yes , button 2 can chose yes or not, but if button two chose yes, radio button one is auto to change to yes.
    How to handle that?
    thank you

  2. #2
    Join Date
    Jun 2004
    Location
    Portsmouth UK
    Posts
    2,687
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    </head>
    
    <body>
    <form>
    <input type="radio" name="r1" value="yes" />
    <input type="radio" name="r1" value="no" />
    <br />
    <input type="radio" name="r2" value="yes" onclick="this.form.r1[0].checked=true;"/>
    <input type="radio" name="r2" value="no" />
    
    </form>
    </body>
    
    </html>
    Vic

    God loves you and will never love you less.

    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  3. #3
    Join Date
    Nov 2007
    Posts
    113
    yes, but they use in purpose to check no on radion one, what can we do

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles