I can't seem to make this work and I've tried many different combinations. All I want to do is get characters four and five from text returned from an .each() iterator before writing it to an array.
var timeItems = [];
$("div[class*='field-name-field-time-']").each(function (i, e) {
$(this).text().slice(3,5);
timeItems.push($(e));
});
Any ideas?
Thanks!