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
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Check if true help

    Hi everyone,

    I have put together the code below for a form I am building and now I need some assistance with a new function. I would like for certain radio buttons to be auto selected if another is checked. How do I accomplish this?

    Thanks!

    //-->Disable radio buttons
    function Disab (val) {
    if(val=="1")
    {
    skiday07.rental[0].disabled=false;
    skiday07.rental[1].disabled=false;
    skiday07.lessons[0].disabled=false;
    skiday07.lessons[1].disabled=false;
    skiday07.skill_level[0].disabled=false;
    skiday07.skill_level[1].disabled=false;
    skiday07.skill_level[2].disabled=false;
    skiday07.skill_level[3].disabled=false
    }

    if(val=="2")
    {
    skiday07.rental[0].disabled=true;skiday07.rental[0].checked=false;
    skiday07.rental[1].disabled=true;skiday07.rental[1].checked=false
    skiday07.lessons[0].disabled=true;skiday07.lessons[0].checked=false;
    skiday07.lessons[1].disabled=true;skiday07.lessons[1].checked=false;
    skiday07.skill_level[0].disabled=true;skiday07.skill_level[0].checked=false;
    skiday07.skill_level[1].disabled=true;skiday07.skill_level[1].checked=false;
    skiday07.skill_level[2].disabled=true;skiday07.skill_level[2].checked=false;
    skiday07.skill_level[3].disabled=true;skiday07.skill_level[3].checked=false
    }
    }

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Can you be more specific
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you go to this link http://invites.fasken.com/skiday_07/rsvp.html
    and click on "Will you be attending Ski Day?" Yes or No you will notice how they altrernate between enable and disable of the feilds below. When you select NO I want the feilds below to be auto check NO at the same time as they are disabled.

    Hope this makes sense.

  • #4
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nevermind everyone. I apologize. Didnt realize the answer was right there in front of me. I am very new to this. I appreciate your help.


  •  

    Posting Permissions

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