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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:17:20+00:00 2026-05-15T21:17:20+00:00

Here I construct an array: var optionTexts = []; $(‘#stripeMeSubSubCat tr’).each(function(){ if ($(this).find(‘input:checkbox.subsubcat_chkclass:not(:checked)’).length ==

  • 0

Here I construct an array:

var optionTexts = [];
    $('#stripeMeSubSubCat tr').each(function(){
        if ($(this).find('input:checkbox.subsubcat_chkclass:not(:checked)').length == 0)
            {
                subsubrow_cat_id_no = parseInt($(this).closest("tr").attr("id"));               
                optionTexts.push(parseInt(subsubrow_cat_id_no));
            };          
    });

The code below only works whenever the alert is enabled. I have read that this might be due to a synchronization issue. Is there a solution towards the code below? Thank you.

$('#stripeMeSubSubCat tr').each(function(){                                      
        myindex = parseInt($.trim($(this).closest("tr").attr("id")));

        if (jQuery.inArray(myindex, optionTexts) == -1) {
             var equal="FALSE";
        }else{
             var equal="TRUE";
            $("#stripeMeSubSubCat tr[id='" + myindex + "'] input").attr('checked', true);       
        };  

        //alert(equal);
});
  • 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-15T21:17:21+00:00Added an answer on May 15, 2026 at 9:17 pm

    What do you mean by “only works whenever the alert is enabled”? You need to describe the difference in behavior in both cases.

    Your code has no asynchronous calls, so there shouldn’t be synchronization issue. However, you seem to be using an integer as a DOM element id. This isn’t allowed.

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

Sidebar

Related Questions

I'm trying to construct a permutation program in Perl using the NestedLoops function. Here's
I'm trying to construct a javascript array from a db query. Each item in
Here is my TagAdmin class protected function configureFormFields(FormMapper $formMapper) { $formMapper ->add('name') ->add('description') ->add('slug','text',array(
I've created some UserControl. Here is its constructor: public ZoomableChart() { InitializeComponent(); this.mainChart =
Here is the textbook standard way of describing a 'class' or constructor function in
I construct an array, which I am going to use later to compare some
I have these Javascript classes/code: function PageManager () { this.digital_channels = undefined; this.loadConfiguration =
Here the thing, other PDO works well, but this one doesn't. I have tried
i keep getting this error for an array of errors that i have set
I have a function which needs to return either an array or object. I'm

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.