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

Changing color of required fields on wrong entry

P: 59

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

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:
Oct 1 '08 #3

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

Oct 1 '08 #4

Post your reply

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