I am trying to populate a collection using an each. I can get the element in one string, and I can get an alert to fire on each iteration. I just cant put the two together.
Here is my list:
4/27/2011 5:42:54 PM
4/27/2011 5:43:00 PM
4/27/2011 5:46:53 PM
4/28/2011 2:10:40 PM
Here is my code.
if (chosenTime > 0) {
var myDateClass = $('.exceptionDate')
var i = 0
$(myDateClass).each(function () {
var myDateClassVal = myDateClass[i].GetAttributeNode(outerText);
//this currently gives an error
//if I switch this to myDateClass.text();
// it returns the list in one string
i++
});
inside the each use
$(this).text().thisis the individual item within the each.