Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get data form

const formData = {}
    Array.from(e.currentTarget.elements).map(item=>{
      if (!item.name) return null;
      formData[item.name] = item.value
    })
    console.log(formData)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #data #form
ADD COMMENT
Topic
Name
6+9 =