title: How to show the count selected values in the label of select box(i.e Select Option)
body: <p>I am using the jQuery multiselect api to select multiple values in my application,but what i want that,when i click on a button beside that multiselect box all the selected values should be fetched.But i am not able to do that ,Here i am posting my code.</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="http://labs.abeautifulsite.net/archived/jquery-multiSelect/jquery.multiSelect.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css" /&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://labs.abeautifulsite.net/archived/jquery-multiSelect/jquery.multiSelect.js"&gt;
  
  &lt;/script&gt;
  
  &lt;h1&gt;Form Submission Test&lt;/h1&gt;
  
  &lt;p&gt;Testing to ensure the correct values are actually passed when the form is submitted.&lt;/p&gt;
  &lt;select name="region" id="regionHome"&gt;
  &lt;option value="MDC"&gt;MDC&lt;/option&gt;
  &lt;option value="LAC"&gt;LAC&lt;/option&gt;
  &lt;option value="BRO/WPB"&gt;BRO/WPB&lt;/option&gt;
  &lt;option value="NOE"&gt;NOE&lt;/option&gt;
  &lt;option value="OTHER"&gt;OTHER&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type="button" value="Search" onclick="searchByDate()" class="searchButton"&gt;
  
  &lt;script&gt;
  $("#regionHome").multiSelect();
  
    function searchByDate() {
  
  alert("There are " + $('input[name="regionHome[]"]:checked').length + " boxes selected");
  var foo = [];
  $('input[name="regionHome[]"]:checked').each(function (i, selected) {
      $( 'div.regionHome' ).replaceWith( "&lt;p&gt;Test&lt;/p&gt;" );
      foo[i] = $(selected).val();
      alert(foo[i]);
     });
   }
     &lt;/script&gt;
  </code></pre>
  
  <p>Selection along with count is here i am trying to show the count of each selected values in the label with each select i.e when ever i  will select a value the count will be updated in the label fiddle is here </p>
  
  <p><a href="http://jsfiddle.net/gbtceq2m/3" rel="nofollow">working fiddle</a></p>