js retrieve form data

JavaScript
var nameValue = document.getElementById("uniqueID").value;

Source

Also in JavaScript: