I have a set of text boxes in which the user inputs an email address into each one. I want to loop around these and build an array of them. How do I do it?
var emailAddresses = new Array();
$(".email_address").each(
function() {
//add this $(this).val() emailAddresses
}
);
See $.map for an awesomely concise way to do this sort of thing.
getconverts the returned collection into an array. Hope that helped.