forms...how do you disable/enable them?

K

Ken Bouchard

I need to have a form on my website that will stay "grayed out" and thus
disabled, until the user puts a check in a box. Can this be done? Can't find
any info.

thanks, ken
 
J

Jay

For example, the script below when called will disable the textbox T1 in
form1. The for whatever the event is for a checkbox being checked, you can
have it call disable(); I'm not sure what event fires when a check box is
checked.

<SCRIPT lang="javascript">
function disable (){
form1.T1.disabled=true;
}
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top