WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Validation error fade similar to not valid tip? (1 post)

  1. SpaciousMind
    Member
    Posted 2 years ago #

    Apologies if this has been covered and resolved, I tried to search for it but couldn't find an answer.

    Q: Is it possible to give the validation error the same fade away effect as when the not-valid tips are rolled over?

    I found this in the scripts.js file on line 142, and am assuming it holds the key to what I'm asking:


    $.fn.wpcf7NotValidTip = function(message) {
    return this.each(function() {
    var into = $(this);
    into.append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
    $('span.wpcf7-not-valid-tip').mouseover(function() {
    $(this).fadeOut('fast');
    });
    into.find(':input').mouseover(function() {
    into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
    });
    into.find(':input').focus(function() {
    into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
    });
    });
    };

    Any help appreciated.

    http://wordpress.org/extend/plugins/contact-form-7/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic