In jQuery, it is easy to select elements as array.
$("a"); // return as elements array of anchors
But is it possible to select matched elements' attributes as array?
Currently I need to do something like...
links = [ ];
$("a").each(function() {
href = $(this).attr("href"); links.push(href);});
Are there any better method to fill the variable links with href of the all matched anchors?