Skip to content

Instantly share code, notes, and snippets.

@emcode
emcode / form-script.html
Created May 13, 2012 14:59
How to convert HTML form data to JS object (for using with AJAX)
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>How to convert HTML form data to JS object (for using with AJAX)</title>
</head>
<body>
<form id="contact-form" action="/" method="post">