Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4610760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:10:36+00:00 2026-05-22T01:10:36+00:00

I am trying to populate a collection using an each. I can get the

  • 0

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++
       });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:10:37+00:00Added an answer on May 22, 2026 at 1:10 am

    inside the each use $(this).text(). this is the individual item within the each.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the autocomplete plugin to populate one textbox with the university
I am trying to populate a <select> element via Ajax. It works great in
I'am currently playing around with MongoDB using its C# driver, trying each method in
I'm trying to populate a DataTable, to build a LocalReport, using the following: MySqlCommand
I have an collection of java beans that populate a JSF DataTable I'm trying
I'm trying to populate a formtastic select menu using an Array. model PAYMENT_METHODS =
I'm trying to render a Backbone.js collection as a select list using an Underscore.js
I am trying to populate a collection with data from a JSON file. I'm
I am trying populate H3 with the sum of column E for rows that
I'm trying to populate a dictionary dynamically in a for loop like so: pseudo-code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.