Answer Question
i need help with enabling/disabling text fields
I looked at one your older posts and im currently using your following script:
Test
function disable_controls( state) {
var frm = document.forms[0] ;
var len = frm.elements.length ;
var cnt = 0 ;
for ( var i=0; i < len; i++) {
var elem = frm.elements[i] ;
if (elem.type != "hidden") {
elem.disabled = state ;
}
}
}
Enable
Disable
abc
def
--------------------------------------------------------
The way i'm actually using it is instead of using buttons to disable/enable the following fields, i'm using a radio type field. Yes (is the Enable value) and No (Disable value). The problem i'm having is that when i a select No, it will gray out radio field. I can't then go back and select Yes.
I tried tweaking the code a bit, but with no success. Is there a way to workaround this?
Thank you very much.
TEXT
Uploading file and scanning for virus...
Please Wait