var summary = []; $('form').each(function { summary.push('Form ' + this.id + ' has ' + $(this).find(':input').length + ' child(ren). The :selected selector works for