title: array split using jquery?
body: <p>i have some value stored in array and i wana split them and wana know length of its contains value but when i am running function it is not working</p>
  
  <pre><code>&lt;head&gt;
  
  &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
  $(function(){
  
  
      var valData= ['songs','video','movie','games','other'];
  
      var valNew=valData.split(',');
  
      for(i=0;i&lt;valNew.length;i++);
  
      alert(valNew.length)
  
      })
  
  
  &lt;/script&gt;
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;select id="me"&gt;&lt;/select&gt;
  &lt;/body&gt;
  </code></pre>