remove span elements from Contact form 7 but keeping inside elements

//remove span elements from Contact form 7 but keeping inside elements

var cf7input = $( ".wpcf7-form-control" );
  if ( cf7input.parent().is( "span" ) ) {
    cf7input.unwrap();
  } else {
    cf7input.wrap( "<span></span>" );








 



jQuery('.form-group br').remove();


 

//On focus add class for animation (optional)
jQuery('.form-control').focusout(function(){
 var text_value=jQuery(this).val();
     if(text_value!='')
       {

//alert(1);
jQuery(this).addClass("wariya");
        }else{jQuery(this).removeClass("wariya");}
});



DEMO: https://jsfiddle.net/qjw5nr7r/

Comments

Post a Comment

Popular posts from this blog

Elance HTML5 Test Answers