Australian Business Forum  

Go Back   Australian Business Forum > Wholesale Business Discussion > Payment and Shipping Discussion

Payment and Shipping Discussion Discuss payment services and shipping methods in here. Do you want an opinion on a payment method? Confused as to how a payment method works? Need advice with organising shipping? Get help and advice in here.


Reply
 
LinkBack Thread Tools
Old 10-04-08   #1
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Zach is on a distinguished road
Default How to disable a radio button if another button higher in the form is selected?

I have tried a bunch of stuff and it just never works once I upload it onto my site and try it. Here is what I have:<script type="text/javascript">function shipSwitch(){if(document.confirm.radio.value == Yes){document.confirm.ground.disabled=true;}else{d ocument.confirm.ground.disabled=false;}}</script>And then in the actual form:<form name="confirm" method="post" action="send.php" id="confirm"><input type="radio" name="ReturnDrive" id="returnDriveYes" value="Yes" onclick="shipSwitch()">//When this is selected, I want the other radio disabled<input type="radio" name="shipping" id="ground" value="Ground">//this is the one that should be disabled.</form>I have tried everything, any suggestions?
Zach is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Sponsored Links
Old 11-04-08   #2
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
abubakrshahdad is on a distinguished road
Default How to disable a radio button if another button higher in the form is selected?

instead of disabled use readonly parameter
abubakrshahdad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply

Tags
button, disable, form, higher, radio, selected

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +11. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0