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");}
});
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");}
});
Thank you
ReplyDelete