In this section, you will learn how to change the background of textbox. Here we have created a textbox and allowed the user to enter the valid name. If the entered name is 'roseindia' then the background changed to green otherwise it will remains red.
Here is the code:
As the user enters roseindia, backgroud color changed to red.