Results 1 to 6 of 6

Thread: radio and checked state

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222

    radio and checked state

    imagine having 4 radio in the same document how could i make it whaen i click on radio all others state become unchecked i tried div but its not working cuase these radios r inside different <tr>

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    are they enclosed in <form></form> tags?
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222
    no they r'n t is that the problem trying to see them through the document obj but can't

    document.radioname=undifined

  4. #4
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Place form tags around them. They should also have the same name.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  5. #5
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276
    As Psyrus said...
    They should also have the same name
    That shld be the problem....
    U gotta have the radio buttons, all with the same name. That groups them together.

    Ex:
    <input type=radio name=Group1>One
    <input type=radio name=Group1>Two
    <input type=radio name=Group1>Three
    <input type=radio name=Group1>Four

    -Jemima

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Yes, same name, but different values.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

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



Click Here to Expand Forum to Full Width