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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vyon13
    New Member
    • Feb 2008
    • 8

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

    heres my code:
    Code:
    <input type="radio" name="A5a1" value="x">Income
    <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
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    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 :)

    Comment

    Working...