Print Page | Close Window

Textarea Background color change

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8968
Printed Date: 28 March 2026 at 5:52am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Textarea Background color change
Posted By: dwhite01
Subject: Textarea Background color change
Date Posted: 16 January 2004 at 6:23am

How do I change the background color of a form textarea on selecting a certain radio button?

Thanks in advance.




Replies:
Posted By: pmormr
Date Posted: 18 January 2004 at 3:47pm
you should be able to do it with JavaScript... do a google search

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Hero Doug
Date Posted: 23 January 2004 at 12:54am
Use CSS, it'll be easier.

You can use it for any text areas, radio buttons, text boxes, check boxes and submit buttons.

Here is a button I use for my site.

<input type='submit' value='Click to complete order' style='background-color: #638177; color: #ffffff;' />



-------------
http://web-hosting.arcanenexus.com - Arcane Nexus Web Hosting - http://forums.arcanenexus.com - Arcane Nexus Web Development, IT and Business Forums


Posted By: dwhite01
Date Posted: 23 January 2004 at 5:57am

Thanks for your suggestions guys. I found a solution that uses a combination of JavaScript & CSS.

Cheers.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net