A better explanation: I have a var that contains some html. Within that there are <li> elements that I need to strip the text out of and put that into an array. How would I do this?
I figure I could use each() and push(), but I am not sure how to do this grabbing it from a var. On Apr 5, 11:30 pm, Nic Hubbard <nnhubb...@gmail.com> wrote: > What would be the correct method to create an array from the text > inside <li> items? > > Is below, the best method, or would it even work? > > var array_test = $(#test li).text().makeArray();