I have the following code;
var pro = $(".pro").map(function() {
return this.innerHTML + '(';
}).get();
var qty = $(".qty").map(function() {
return this.value + ')\xa0';
}).get();
var total = pro + qty;
When I print total, it prints as PRODa(,PRODb(2) ,1). I'm trying to show it as PRODa(2) PRODb(2). Basically to put them in order, pro with the associated qty. Is this possible to do within the code above and not under some type of echo/print?