i use .each() to grab all elements with the class "attachment". then i add the text value of the element to an array like so:
- $j('.attachment').each(function(){
attachments.push($j(this).text());
});
but the class "attachment" also includes an input, which i want to get the value of and also add it to the attachments array. I tried this:
- $j('.attachment').each(function(){
attachments.push($j(this).text()+$j(this +'input).val());
});
but it didnt work. Any ideas?