Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
gather all form elements
(function() {
var form = document.getElementById('form_837299');
form.addEventListener('submit', function(event) {
// Prevent normal form submit
document.getElementById('saveForm').addEventListener('click', function() {, function(child) {
var name = child.getAttribute('name');
if ('value' in child && child.type !== 'submit' && name) {
console.log(name, child.value);
// Use jQuery.ajax or a Polymer/core-ajax element to send
// the data to the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.