js get submit data code example
Example 1: jquery get form data
$('form').serializeArray()
// gives
// [ {"name":"foo","value":"1"},
// {"name":"bar","value":"xxx"},
// {"name":"this","value":"hi"} ]
// or
$('form').serialize() // gives : "foo=1&bar=xxx&this=hi"
Example 2: js retrieve form data
var nameValue = document.getElementById("uniqueID").value;