I'm trying to create an array of textarea values and then loop through them.
Here is a jsFiddle that I am trying to get this to work in:
When I run it, nothing happens.
Any idea what I'm doing wrong?
var textArray = [];
$('[class=objectives]').each(function (i) {
textArray.push($(this).val());
});
for (var i = 0; i < textArray.length; i++) {
console.log(textArray[i].value);
}
console.log(textArray[i]);