The elementals.js _.formSerialize function simply takes a form and serializes its elements in a manner suitable for passing in a URI or as 'POST' data in an AJAX request.
See the Demo Explanation Page for more details.