title: Jquery removing commas
body: <p>I'm using the following and it works, but the alerted value <code>opt3</code> contains commas.</p>
  <p>How do I remove them?</p>
  <pre><code>form method='get' action='form.php'&gt;
      &lt;select name='val' class='select' id='opt1' multiple&gt;
          &lt;option&gt;&lt;/option&gt;
          &lt;option value='a'&gt;a&lt;/option&gt;
          &lt;option value='b'&gt;b&lt;/option&gt;
          &lt;option value='c'&gt;c&lt;/option&gt;
          &lt;option value='d'&gt;d&lt;/option&gt;
      &lt;/select&gt;
      &lt;select name='opt' id='opt2'&gt;
          &lt;option value='AAA'&gt;AAA&lt;/option&gt;
          &lt;option value='BBB'&gt;BBB&lt;/option&gt;
      &lt;/select&gt;
      &lt;input type='submit' name='submit' value='submit' onClick=&quot;return function1();&quot;&gt;
  &lt;/form&gt;
  
  &lt;script type='text/javascript'&gt;
      function function1(){
          var opt1=document.getElementById(&quot;opt1&quot;).value;
          var opt2=document.getElementById(&quot;opt2&quot;).value;
          var opt3=$('#opt1').val();
          alert( opt3 );
          var response=confirm(&quot;Are you sure? option1=&quot;+opt1+&quot; option2=&quot;+opt2+&quot; option3=&quot;+opt3 );
          return response;
       }
  </code></pre>
  <p>If I select a c &amp; d the alert shows a,c,d but I want it to show acd.</p>