title: Skip hidden inputs in Jquery serialize
body: <p>I have forms with inputs of hidden and visible like below.In this example I want to serialize only name='country' which is not hidden</p>
  
  <pre><code>&lt;form id="finalform"&gt;
  &lt;input type='hidden' name='sid' value='901271316' /&gt;
  &lt;input type='hidden' name='tco_currency' value='USD'&gt;
  &lt;input   name='country' value='India' /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I tried below code but its serializing even hidden inputs.</p>
  
  <pre><code>var frm = $("form#finalform:visible");
   var add= JSON.stringify(frm.serializeArray());
  </code></pre>