By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,329 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

SOS... how can i diable the other radio button if the other one is click..

P: 8
heres my code:
Expand|Select|Wrap|Line Numbers
  1. <input type="radio" name="A5a1" value="x">Income
  2. <input type="radio" name="A5a2" value="x">Tax
the problem is if i click the income button then i click the other one both of them will be check.. and the value of the radio button will store in my database whre the radio name is the fieldname in my table,..wherein the value of radio button will be stored in my dataabse,.. help me pls on how to disable the other radio button,if the other one is click and vice versa...tnx in advanced!! GODBLESS!!!
Feb 9 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 6,050
When one radio is selected, you can fire a function that toggles the 'disabled' attribute of the other radio.

But that's a javascript question :)
Feb 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.