Connecting Tech Pros Worldwide Forums | Help | Site Map

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

vyon13's Avatar
Newbie
 
Join Date: Feb 2008
Location: Philippines
Posts: 8
#1: Feb 9 '08
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!!!

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,948
#2: Feb 9 '08

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


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 :)
Reply