ON click of check box

ALL ,

Our requirement is like that we want to enable and disable one text box on clicking on the check box . It is working superb. But thing is that we want to change the color of the text box on clicking of the check box . By default the checkbox is unselected (calling the function on the load of the form) . main issue is that user come to know that text box is enable or disable. Ihave tried obj.setStyle() but for check box it is not working . can you have some valuable suggestion ??

Regards

Mike

Subject: ON click of check box

Maybe try something like:

onClick=(if(document.all.CheckBoxName.checked){document.all.TextBoxName.style.color=‘color1’}else{document.all.TextBoxName.style.color=‘color2’})

Hope this helps

Pete

Subject: RE: ON click of check box

Thanks dear ,It is working

I was looking for style.background

thanks for your time

Mike

Subject: RE: ON click of check box

You are completely right - color would have just changed the text! Sorry