A
Size: a a a
A
A
A
AT
AT
A
A
AT
AT
A
A
A
<html>
<form method='post'>
<input type='text' placeholder='email' name='email' id='email-input'/>
<span class='error' id='errorlabel'></span>
<input type='submit'>
</form>
<script>
$('#email-input').onChange(()=>{
fetch('/form/validateemail',{mail: $('#email-input').val()}).then((res)=>{
if(res.status != "OK"){
$('#errorlabel').text("неверно!");
} else{
$('#errorlavel').css('display':'none');
}
);
);
</script>
A
<html>
<form method='post'>
<input type='text' placeholder='email' name='email' id='email-input'/>
<span class='error' id='errorlabel'></span>
<input type='submit'>
</form>
<script>
$('#email-input').onChange(()=>{
fetch('/form/validateemail',{mail: $('#email-input').val()}).then((res)=>{
if(res.status != "OK"){
$('#errorlabel').text("неверно!");
} else{
$('#errorlavel').css('display':'none');
}
);
);
</script>
M
A
A
ᅠ
ᅠ
A
<html>
<form method='post'>
<input type='text' placeholder='email' name='email' id='email-input'/>
<span class='error' id='errorlabel'></span>
<input type='submit'>
</form>
<script>
$('#email-input').onChange(()=>{
fetch('/form/validateemail',{mail: $('#email-input').val()}).then((res)=>{
if(res.status != "OK"){
$('#errorlabel').text("неверно!");
} else{
$('#errorlavel').css('display':'none');
}
);
);
</script>
A