radio button toggle on text input HELP

Discussion in 'JavaScript' started by Freelancer Auctions, May 26, 2007.

  1. #1
    Any help with this is greatly appreciated. I know this is probably really simple for someone on here. Here's what I want to do:

    I have a form with a Yes and No radio button and there is also an input box next to both of these of the purpose of entering a quantity. What I want to do is have the radio button automatically switch to Yes if the input box not empty and alternately switch back to No if it is emptied.
     
    Freelancer Auctions, May 26, 2007 IP