title: how to remove first 5 or 7 characters using javascript
body: <p>i have posted the a question using the given javascript below:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function showData($sel){
          var str='';
          document.getElementById("demo").innerHTML;
          for (var i=0;i&lt;sel.options.length;i++){
              str+=(str!='') ? ', '+sel.options[i].value : sel.options[i].value;
          }
      }
      sel.form.selectedFruits.value = str;
  &lt;/script&gt;
  </code></pre>
  
  <p>now the question is that how to remove first 5 or 7 using this javascript. please help by setting in this javascript.</p>
  
  <p>thanks in advance.</p>