Results 1 to 2 of 2

Thread: Highlight form element onFocus

  1. #1
    Join Date
    Aug 2011
    Location
    Rep Of Ireland
    Posts
    126
    Thanks
    24
    Thanked 3 Times in 1 Post

    Arrow Highlight form element onFocus

    Having trouble getting the input fields to highlight onFocus. It works for the textarea field fine!

    Code:
    .data:focus, textarea:focus {color : #009; border : 1px solid #990000; background-color : #ffff99;}
    How do I get it to apply to the input fields?

  2. #2
    Join Date
    Aug 2011
    Location
    Huntington Beach, CA
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You are styling both a class and an element, you need to assign the .data class to the input you want to highlight, the textarea is working because you are styling all textarea elements. We need to see your form code give better advice.

Tags for this Thread

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
  •