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 ??