Issue on Processing Array Items Into a Div
can you please take a look at this code and let me know why I am not able to add the array Items into the .box? I already used the .text() and .html()
- var letters = [];
- var str = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
- var letters = str.split(",");
-
- for (var j = 0; j < letters.length; j++) {
- $(".box").html(letters[j]);
- }
but they only add the last item "Z" into the box.