Web Analytics Made Easy -
StatCounter select only one of two checkboxes - CodingForum

Announcement

Collapse
No announcement yet.

select only one of two checkboxes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • select only one of two checkboxes

    hi

    i have a form that i have been working on for quite some time now and a problem has surfaced.

    i should of used radio buttons for selecting male or female but i used check boxes. to change all the code that is already there will take some time.

    so what im looking for is a script that will only allow the user to check one of the two boxes.

    the form can be seen here https://www.search4aloan.co.uk/unsec...s/new/app1.htm

    thanks for any help.

    ThisAndThat

  • #2
    Using radio buttons is more appropriate. Why it would take some time to change the checkboxes to radios? Using radios won't require any javascript code anymore.

    <input type="radio" name="gender" value="m">Male
    <input type="radio" name="gender" value="f">Female
    Glenn
    vBulletin Mods That Rock!

    Comment

    Working...
    X