I have some HTML like:
hello 1 hello 2
Or a little bit shorter than the accepted answer:
$.map($("#foo span a"), $.text)