By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 1,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

Change background color of a textbox with javascript.

P: 3
Hi,

Simple question: how do i change the background color of a textbox with javascript?

BuBbA
Apr 26 '07 #1
Share this Question
Share on Google+
2 Replies


jhardman
Expert 2.5K+
P: 3,405
Hi,

Simple question: how do i change the background color of a textbox with javascript?

BuBbA
I've moved your thread to the javascript forum, since this is where you will get an answer.

Jared
Apr 26 '07 #2

dorinbogdan
Expert 100+
P: 839
[html]document.getElementById('textboxId').style.backgro undColor = 'red';[/html]
Apr 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.