Results 1 to 2 of 2

Thread: Code for radio button

  1. #1
    Join Date
    Jul 2010
    Posts
    228
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Default Code for radio button

    Good day!

    I never used radio button. Now I need to add radio button in my webpage. Radio button 1 is mother and radio button 2 is child. Is it in my database it is only 1 field or separate field one for mother and one for child?

    Kindly give me a code for radio button.

    Thank you...

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    A set of radio buttons have the same name, that way the value can be passed on to the one selected. For example, under "Favorite Animals" there might be dog, cat, and bear. Dog, cat, and bear would all have the name 'animal' and whichever one was clicked on is the value of animal.

    What's your question?
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    rhodarose (12-10-2010)

Bookmarks

Posting Permissions

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