Šime Vidas on Nostr: npub19lt42…6qfjk <input id=user> user.onchange = () => { let input = ...
npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk (npub19lt…qfjk)
<input id=user>
user.onchange = () => {
let input = document.createElement('input');
input.type = 'email';
input.required = true;
input.value = user.value;
if (input.validity.valid) {
// show error message
}
};
https://output.jsbin.com/jafovub/quiet
<input id=user>
user.onchange = () => {
let input = document.createElement('input');
input.type = 'email';
input.required = true;
input.value = user.value;
if (input.validity.valid) {
// show error message
}
};
https://output.jsbin.com/jafovub/quiet