title: jQuery: form serialize, hidden fields, and not displayed fields
body: <p>I am using <code>$(this).serialize()</code> when submitting a form.</p>
  
  <p>It works well, except in times when I (for some reason) have 2 fields with same name (one visible, and one not, and I am not talking about <code>type="visible"</code> but <code>display:none</code>)...</p>
  
  <p>But of course <code>serialize</code> has no regard for this... it just takes them all.</p>
  
  <p>I tried this</p>
  
  <pre><code>var $disabled_list = $(this).find('input:hidden,select:hidden,textarea:hidden').attr('disabled', 'disabled');
  $(this).serialize();
  $disabled_list.attr('disabled','');
  </code></pre>
  
  <p>and It is solving my problem, except the :hidden selector, takes also type="hidden"</p>
  
  <p>what's the proper way?</p>