/    Sign up×
Community /Pin to ProfileBookmark

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 [url]https://www.search4aloan.co.uk/unsecured/application/templates/new/app1.htm[/url]

thanks for any help.

ThisAndThat

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@chrizMar 08.2004 — if(document.form1.chk1.checked && document.form1.chk2.checked) {

alert("No");

else {

continue();

}
Copy linkTweet thisAlerts:
@ThisAndThatauthorMar 08.2004 — thanks for the help.
×

Success!

Help @ThisAndThat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...