Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Help w/ Live Validation Library

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24821
    mdgrech
    Member

    I’m using live validation on my http://mdgrech.com, I would like to use an image instead of of the valid/invalid message. Please help.

    Code:


    #57366
    AshtonSanders
    Participant

    You’ll just need to look for the ID and CLASS hooks, and then use those to create background images.

    For example, your invalid email error is in

    Code:
    p#contact_results.error

    The problem is that the text inside of that error might change. I saw it once as "Invalid Email". If it has any other errors with the same hook, you’d have to edit the Javascript to be different.

    If you only have "invalid email" in this error field, this could work

    Code:
    p#contact_results.error {
    background: url(‘folder/image.jpg’) no-repeat;
    text-indent: -1000px;
    height: 60px; /* height of the image*/
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.