I\'m trying to iterate over a \"value\" list and convert it into a string. Here is the code:
var blkstr = $.each(value, function(idx2,val2) {
Use join() and the separator.
Working example
var arr = ['a', 'b', 'c', 1, 2, '3'];
// using toString method
var rslt = arr.toString();
console.log(rslt);
// using join method. With a separator '-'
rslt = arr.join('-');
console.log(rslt);
// using join method. without a separator
rslt = arr.join('');
console.log(rslt);