SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Highlight text box in red if required field...

    Hey,

    Im not sure if this is a CSS or PHP issue..

    Take a look at the following page:-

    http://www.judgethejob.com/vinny/submit-review/

    At the moment if you click on a text box it is given a green border. I quite like this. But lets say i wanted to full validate the form and include certain required fields..

    What i want to do is when a required field is left blank the text box is given a border of red..

    How can i do this?

    Regards

  2. #2
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its CSS,

    >> What i want to do is when a required field is left blank the text box is given a border of red..

    I believe it can be done in Ajax


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •