title: Jquery - Create an array from a delimited string and then evaluate its values
body: <p>i've this problem i'm not really able to solve.</p>
  
  <p>i have this string "B01, B20, B03, "</p>
  
  <p>i would like to create a jQuery array off this string using the "," as delimiter
  then remove the last element ( that would be blank ) and then for each value of the
  array make an alert.</p>
  
  <p>Something like...</p>
  
  <pre><code> var theString = "B01, B20, B03, ";
  
      var theArray = (theString, ',');
  
      theArray = remove_last_element;  (??)
  
      $('theArray').each(function() {
  
        alert(theArray[?].value); 
  
      });
  </code></pre>
  
  <p>Any hint ?</p>
  
  <p>Thanks !</p>