Hi All,

I have this code:

Code:
<input name="payment" id="payment_visa" type="radio" value="visa"> Visa
<input name="payment" id="payment_paypal" type="radio" value="paypal"> Paypal
I want to use this JavaScript code to make ReadOnly attribute TRUE for PayPay.

Code:
<a href="#" onClick="document.getElementById('payment_visa').readOnly=true;">Only visa...</a>
But it does not work. Please help...