Making a field un-editable until the correct radio button is pressed

Discussion in 'JavaScript' started by liam1412, Sep 25, 2008.

  1. #1
    Hi

    I need a field in a form to be greyed out and un-editable until a radio button has been changed from free to premium.

    Is this possible to do with javascript.

    Thanks
     
    liam1412, Sep 25, 2008 IP
  2. StrangeLife

    StrangeLife Well-Known Member

    Messages:
    269
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Hi Liam,

    Seems to be possible did some research into this and i believe this is something your looking for...
    CodeToad
     
    StrangeLife, Sep 25, 2008 IP
  3. serialCoder

    serialCoder Guest

    Best Answers:
    0
    #3
    yep just change the readonly attribute depending on the conditions
     
    serialCoder, Sep 25, 2008 IP
  4. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I am a complete newbie to JS. Infact I don't know it at all. How do you mean change depending on the conditions.
     
    liam1412, Sep 25, 2008 IP