i’ve this problem i’m not really able to solve.
i have this string “B01, B20, B03, “
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.
Something like…
var theString = "B01, B20, B03, ";
var theArray = (theString, ',');
theArray = remove_last_element; (??)
$('theArray').each(function() {
alert(theArray[?].value);
});
Any hint ?
Thanks !
Let me know if you have any questions.