Forum Moderators: open
<table align="center"><tr><td><input type="radio" name="payment" value="direct">Direct Debit <input type="radio" name="payment" value="credit"> Credit Card <input type="radio" name="payment" value="monthly"> Monthly Payments</td><td><input type="text" name="mpayment" size="4"></td></tr></table>
i want to know how i can make the text box only become enabled when the monthly payments radio button is checked.
I was given this but it didnt work, any help would be appreciated.
function Mpay() {
if document.order.payment.value="monthly";
document.order.mpayment.disable=true;
else
document.order.mpayment.disable=false;
}