Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get form value

const formData = {}
    Array.from(e.currentTarget.elements).map(item=>{
      if (!item.name) return null;
      formData[item.name] = item.value
    })
    console.log(formData)
 
PREVIOUS NEXT
Tagged: #form
ADD COMMENT
Topic
Name
8+1 =