How to change Textbox Color in Javascript?

 Posted by Rajesh_Kumar on 2/13/2014 | Category: JavaScript Interview questions | Views: 2382 | Points: 40
Answer:

With the help of style'color property of Textbox,we can change any color.

For Example:
document.getElementById("TextBox1").style.color = "red";


<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response