코드 - html 첫번째 문자 두번째 문자 세번째 문자 네번째 문자 다섯번째 문자 - script 1 var txt = $('.newAry').text(); var newAry = txt.trim().replace(/\n/g, '/').replace(/\s/g,'').split('/'); console.log(newAry); - script 2 $('.newAry').each(function(){ var $item = $(this).find('li'); var newAry = $item.map(function(){ return $(this).text(); }); console.log(newAry); }); - script 3 var newAry = new Array(); var aryIdx = -1; $('.newAry li').each(function(){ var txt = $(this).text(); aryIdx ++; newAry[aryIdx] = txt; }); console.log(newAry);