I have a structure like this:
text1 text2 text3
var arr = new Array(); $('li').each(function() { arr.push(this.innerHTML); })