Click to See Complete Forum and Search --> : how to dynamically disable/enable button using javascript


yu169409
09-30-2003, 09:02 AM
hi there
in my form i have a button, list box, and textarea controls. initially the button is disabled, any change in listbox or textarea will enable the button. how can i use javascript to accomplish this? i understand that those controls have onChange() method. thanks for ur help.

Jona
09-30-2003, 02:22 PM
document.forms["name_of_form"].name_of_button.disabled=true;


[J]ona