title: Javascript/jQuery Serialize all options in select tag
body: <p>I have select box like this</p>
  
  <pre><code>&lt;select size="20" multiple="" id="left_lps" name="lps[]"&gt; 
      &lt;option lpprobability="10" lpname="1 - Chrome" id="opt8" value="8"&gt;1 - Chrome&lt;/option&gt;
      &lt;option lpprobability="20" lpname="2 - Chrome" id="opt9" value="9"&gt;2 - Chrome&lt;/option&gt;
      &lt;option lpprobability="33" lpname="3 - Chrome" id="opt10" value="10"&gt;3 - Chrome&lt;/option&gt;
      &lt;option lpprobability="15.33" lpname="4 - Chrome" id="opt11" value="11"&gt;4 - Chrome&lt;/option&gt;
      &lt;option lpprobability="50" lpname="5 - Skype" id="opt12" value="12"&gt;5 - Skype&lt;/option&gt;
      &lt;option lpprobability="23" lpname="6 - Skype" id="opt13" value="13"&gt;6 - Skype&lt;/option&gt;
      &lt;option lpprobability="80" lpname="7 - Skype" id="opt14" value="14"&gt;7 - Skype&lt;/option&gt;
      &lt;option lpprobability="11" lpname="8 - Skype" id="opt15" value="15"&gt;8 - Skype&lt;/option&gt;
      &lt;option lpprobability="26" lpname="9 - Skype" id="opt16" value="16"&gt;9 - Skype&lt;/option&gt;
      &lt;option lpprobability="33" lpname="10 - Skype" id="opt17" value="17"&gt;10 - Skype&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When I serialize this I get only selected options, but I need all options in this select box. How do I do that? Also from this select box I need array of pairs (id, lpprobability). </p>
  
  <p>At the end I need to get something like this:</p>
  
  <pre><code>lps[]=8&amp;lpprobability[]=10&amp;lps[]=9&amp;lpprobability=20&amp;lps[]=10&amp;lpprobability[]=33 ...
  </code></pre>
  
  <p>How do I do that? If it is possible, if not I will find another way to get those pairs, but priority is to when serialize get all options in select box not just ones that are selected.</p>