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

  • Home
  • SEARCH
  • 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 8918791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:50:23+00:00 2026-06-15T05:50:23+00:00

I created a jquery utility, that when you select a state from a drop

  • 0

I created a jquery utility, that when you select a state from a drop down, it automatically shows the states. To make the user experience better, I added some logic to divide the stores across three columns. This is working correctly in every browser except IE.

I am not sure that the error displayed in the console is the same error that is causing the .change() event to not trigger in IE, but I thought I would mention it. The console error that I am getting is:

Uncaught TypeError: Cannot read property ‘store_url’ of undefined

Here is the code:

else if (store_remainder === 0) {
   for(var i = 0; i < check; i++) {
      store_col_1.append("<li class='current_store'><a href='" +   data[i].store_url + "'>" + data[i].store_name + "</a></li>");
   }
   for(var i = check; i < (check * 2); i++) {
      store_col_2.append("<li class='current_store'><a href='" + data[i].store_url + "'>" + data[i].store_name + "</a></li>");
   }
   for(var i = (check * 2); i <= data.length; i++) {
      store_col_3.append("<li class='current_store'><a href='" + data[i].store_url + "'>" + data[i].store_name + "</a></li>");
   }    
}

The error comes up only in the final “for” block, which makes me believe that it tries to run the last iteration but doesn’t get a value and comes back as null. If this is the case, how can I fix this?

  • 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-06-15T05:50:24+00:00Added an answer on June 15, 2026 at 5:50 am

    This:

    for(var i = (check * 2); i <= data.length; i++) {
    

    must be:

    for(var i = (check * 2); i < data.length; i++) {
           //without '=' -------^
    

    as somearray[somearray.length] is always undefined.

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

Sidebar

Related Questions

I created a jQuery function that calls on a PHP server-side file that pulls
I have created some JQuery that will expand a div 'popup' on hover and
I have created a jQuery animation that can be seen by clicking the Preview
I created a jQuery plugin that manage the input content (max chars, preg match,...).
I've created a JQuery Mobile Site which picks the data from CSE webservice. I
I have created a jquery fullcalendar, pulling the feed from a google calendar and
I've created a jQuery Sliding Drilldown plugin that works quite well, except for one
I have created a jQuery elastic plugin. I have the problem that if I
I have created a jQuery ajaxTransport handler (for some testscases I have) that is
I have created some JQuery that on click of specified HTML it then becomes

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.