Click to See Complete Forum and Search --> : select only one of two checkboxes


ThisAndThat
03-08-2004, 04:40 AM
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/unsecured/application/templates/new/app1.htm

thanks for any help.

ThisAndThat

chriz
03-08-2004, 04:45 AM
if(document.form1.chk1.checked && document.form1.chk2.checked) {
alert("No");

else {
continue();
}

ThisAndThat
03-08-2004, 08:00 AM
thanks for the help.