• Resolved Cozmoz365

    (@cozmoz365)


    Hi guy’s,

    I would like to implement the script below but am not very good with Word Press, please help.

    The script changes the input fields color when text has been implemented.

    <script>
    //Color changer
    (function($) {
    $(‘.myclass input’).each(function() {
    $.data(this, ‘default’, this.value);
    }).css(“background-color”,”red”)
    .change(function() {
    $.data(this, ‘edited’, this.value != “”);
    $(this).css(“background-color”,”#ffffff”);
    })
    })(jQuery);
    </script>

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Color changer’ is closed to new replies.