title: How do I add a space to .serialize form return?
body: <p>I'm playing a bit with forms in html and jQuery and I've got a problem adding a space before and after my <code>=</code> sign. I'm still a beginner, and at times I dont know 100% what I'm doing, so if you've got any tips, feel free to chip in with them as well. So far this is what I've got:</p>
  
  <pre><code>        &lt;form id='target'&gt;
              &lt;input type='text' placeholder='Name' name='name' id='name' &gt;&lt;br /&gt;
              &lt;input type='text' placeholder='Address1' name='address1' class='input' /&gt;&lt;br /&gt;
              &lt;input type='text' placeholder='Address2' name='address2' class='input' /&gt;&lt;br /&gt;
              &lt;input type='text' placeholder='Postcode' name='postcode' class='input' /&gt;&lt;br /&gt;
              &lt;input type='text' placeholder='Country' name='country' class='input' /&gt;&lt;br /&gt;
              &lt;input class='input' type='submit' name='submit' value='Submit' /&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>and my jQuery:</p>
  
  <pre><code>$(document).ready(function() {
  
  $('#target').submit(function(event){
      event.preventDefault();
      var name = $("input[name='name']").serialize();
      var address1 = $("input[name='address1']").serialize();
      var address2 = $("input[name='address2']").serialize();
      var postcode = $("input[name='postcode']").serialize();
      var country = $("input[name='country']").serialize();
      $('#cont8').html("&lt;div class='formreturn'&gt;"+ name + "&lt;br /&gt;"+ address1 + "&lt;br /&gt;" + address2 + "&lt;br /&gt;"+ postcode + "&lt;br /&gt;"+ country +"&lt;/div&gt;");
      }); 
  });
  </code></pre>
  
  <p>This <code>return</code>s:</p>
  
  <pre><code>Name=MyName &lt;br /&gt;
  Address1=MyStreet1 &lt;br /&gt;
  Address2=MyStreet2 &lt;br /&gt;
  Postcode=MyPostcode &lt;br /&gt;
  Country=MyCountry
  </code></pre>
  
  <p>Which is fine (although the code might be a bit messy?!)
  But I want to add a space on either side of the <code>=</code> sign. How do I do that?
  Any help is really appreciated!</p>