Changing color of required fields on wrong entry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gubbachchi
    New Member
    • Jan 2008
    • 59

    Changing color of required fields on wrong entry

    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
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Neither html or css can do this. You must ask on the PHP board.

    Comment

    • labmonkey111
      New Member
      • Sep 2008
      • 44

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

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Moved to the JavaScript forum.

        Moderator.

        Comment

        Working...