Open sanjarcode opened 10 months ago
document.querySelector(#my-form-id).elements returns an object keyed by name (on the ). Useful for realtime validation. i.e. don't have to wait until onSubmit is fired (to do event.target.value)
document.querySelector(
).elements
name
document.querySelector(
#my-form-id).elements
returns an object keyed byname
(on the ). Useful for realtime validation. i.e. don't have to wait until onSubmit is fired (to do event.target.value)