フォームに電話入力があります。私はマスクされた入力を使用しており、ユーザーが入力をクリックしてスパンを削除するときの値をシミュレートするスパンを作成する必要がありましたが、ユーザーがすべてのマスクを埋めていない場合、ぼかしで偽の値が表示されません(使用しているスパン)。
私はspan cozを使用しています。値を使用して同じ問題がありました..
$('#telefone').on({
focus: function(){
$('#contato span.value_telefone').hide();
$('#contato #telefone').mask('(99) 9999-9999');
},
blur: function(){
if($('#contato #telefone').val()=='' || $('#contato #telefone').val()=='(__) ____-____'){
$('#contato span.value_telefone').show();
}
}
});
$('#contato span.value_telefone').click(function(){
$(this).hide();
$('#contato #telefone').mask('(99) 9999-9999');
$('#contato #telefone').focus();
});