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 9187211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:42:47+00:00 2026-06-17T19:42:47+00:00

As a step to learn jQuery, I am trying to create Sudoku, in which

  • 0

As a step to learn jQuery, I am trying to create Sudoku, in which I generated numbers in div blocks from 1 to 89 (leaving 10 divisible numbers). My code works good in Google chrome but IE8 generates the div id’s differently.

Please check this fiddle

I highly doubt the error must be because of incompatibility of some methods of jQuery. The problem could be in the following steps:

var lastNumId = parseInt(_idGen.toString().substr(-1), 10);
var secondLastNumId = parseInt(_idGen.toString().charAt(_idGen.length - 2), 10);

In the above lines to do the same, I used different techniques because if I do so then it is working in Chrome.

  • 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-17T19:42:48+00:00Added an answer on June 17, 2026 at 7:42 pm

    Using a negative index in substr is not supported by IE until version 9.

    Just use the modulo operator to get the last digit of the number. This works in IE8 also:

    var lastNumId = _idGen % 10;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am learn to make a multiple step form. i use this jquery code
On step 2 of my step by step jquery form I'm trying to get
I am still trying to learn Java and decided to take it 1 step
I'm currently trying to learn assembly on my Trisquel distribution (which I guess uses
I'm trying to learn Ruby through Koans but I'm stuck on the 6th step.
I'm trying to learn php and step one is getting php working in some
I'm trying to learn how to use managed/unmanaged code interop, but I've hit a
I am trying to learn client-side Dart, coming from a server-side Java EE world,
I'm trying to learn how to make a simple call to the server from
I'm starting to learn Qt and I'm stuck on particular step, which is: I

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.