title: Select all forms in the page and serialize their input values
body: <p>Hello i am trying to Select all forms in the page and then serialize their input values, i am using the following code:</p>
  
  <pre><code>function serializeAllFormData() {
                          var serializedData;
                          $("#form").each(
                                  function() {
                                      serializedData = serializedData
                                              + $(this).serialize();
                                  });
                          return serializedData;
                      }
  </code></pre>
  
  <p>but when i inspect serializedData it is undefined, what i am doing wrong?</p>