let num = $('.box').text().split('') let html = '' num.map((item)=>{ html+='
'+item+'
' }) $('.box').html(html)