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

Changing color of required fields on wrong entry

P: 59
Hi,

I have a application where there are number of fields for name, age etc designed with PHP ans CSS. There are some required fields with * marking, when the user forgets to enter the data or makes any wrong entry, the field color should change. How to achieve this is CSS.
Please anybody give me some hints regarding this.

With regards
Sep 29 '08 #1
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
Neither html or css can do this. You must ask on the PHP board.
Sep 29 '08 #2

P: 44
Javascript should be able to do this pretty easily. This thread may help: http://bytes.com/forum/thread638199.html
Oct 1 '08 #3

acoder
Expert Mod 15k+
P: 16,027
Moved to the JavaScript forum.

Moderator.
Oct 1 '08 #4

Post your reply

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