I have some HTML like:
hello 1 hello 2
You can do it using .map() like this:
var myArray = $("#foo span a").map(function() { return $(this).text(); }).get();
You can test it out here.