Rather basic question but can anyone tell me what is wrong with this script:
basically I need some text boxes to be disabled unless the checkbox is checked, problem above is that if the checkbox is un-checked then the textbox is still available.
I know it's probably simple, but only if you know how
Many thanks
Code:
<input type="checkbox" name="webspace" value="true" onClick="if(document.form2.webspace.value =='true') {ftpaddress.disabled = false} else {ftpaddress.disabled = true}">
I know it's probably simple, but only if you know how

Many thanks
Comment