OZONE Asylum
Forums
DHTML/Javascript
Form with one of two radio buttons required
This page's ID:
29740
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I haven't coded much JS for ages, but this should be what your looking for: [code]if (document.form.payment[0].checked==false && document.form.payment[1].checked==false) { themessage = themessage + " - Betalning"; }[/code] Also, make sure you have a second line of validation that is server side. Think about what can happen if someone has JS disabled. [url=http://www.zavaboy.com][img]http://asylum.zavaboy.com/zavaboy.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »