JAVASCRIPT   31

wpcf7.js

Guest on 19th July 2021 04:53:03 PM

  1. jQuery(document).ready(function($) {
  2.  
  3.         // clear cf7 error msg on mouseover
  4.         $(".wpcf7-form-control-wrap").mouseover(function(){
  5.         $obj = $("span.wpcf7-not-valid-tip",this);
  6.                 $obj.fadeOut();
  7.         });
  8.  
  9.         $("a.btn").each(function(){
  10.                 var btn_text = $(this).text();
  11.                 $(this).empty().append('<span data-hover="'+btn_text+'">'+btn_text+'</span>');
  12.         });
  13. });

Raw Paste


Login or Register to edit or fork this paste. It's free.