Witam. Napotkałem problem przy swoim projekcie nie mogę zrozumieć komentarza firebug-a odnośnie poniższego fragmentu mojego kodu
TypeError: selectedCards.eq is not a function[Więcej informacji]
$(".classroomsList").on("click", ".navList", function(event) {
pressedOption = $(this).attr("id");
selectedLessons = $(xml).find('lesson[classroomids="' + pressedOption + '"]');
selectedCards = $(xml).find('card[lessonid="' + selectedLessons.eq("0").attr("id") + '"]');
for(var i=1; i<selectedLessons.length; i++) {
selectedCards += $(xml).find('card[lessonid="' + selectedLessons.eq(i).attr("id") + '"]');
}
// z tym tutaj poniżej wystepuje problem
firstLesson = selectedCards.eq("0").attr("period");
lastLesson = selectedCards.eq("0").attr("period");
});