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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:31:17+00:00 2026-06-09T10:31:17+00:00

In my requirement, a user can select multiple check-boxes. However after checking each check-box

  • 0

In my requirement, a user can select multiple check-boxes. However after checking each check-box I need to call the URL and pass selected checkbox value with time-delay of 3 seconds. This delay is required, so that user can select/de-select another checkbox, old action should be canceled and new selected value(s) should be passed.

I know to call a function with delay, but don’t know how to stop the last action with the new one.

setTimeout(function(){ call_me(action) },3000);
function call_me(action)
{
    var url = action
    $(location).attr('href',url);
}
  • 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-09T10:31:18+00:00Added an answer on June 9, 2026 at 10:31 am

    You have to use clearTimeout(), but first you need to assign the return of the setTimeout to a variable.

    // declared outside of your code that sets the timeout.
    var t;
    
    
    // your code to be run when you want to set the timeout
    clearTimeout(t);  // if there is no timeout already assigned to t, this line does nothing.
    t = setTimeout(function(){ call_me(action) },3000);
    function call_me(action)
    {
        var url = action
        $(location).attr('href',url);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Design requirement: Show a list of items the user can pick from After having
I have a requirement in which the user can select an image from camera
I need to show a StatusStrip control docked top instead of bottom. User requirement.
I have one requirement in which User will have options to select languages for
In a report generator I wrote the user can select a date range to
I have a form with an input box where the user can specify their
I have a Datepicker using jqueryui DatePicker. The behavior requirement is: A User can
I have textbox with datepicker. according to my requirement user must select either first
I am creating an X++ report, and the requirement is that the user can
According to current requirement,user will upload files with large size,which he may like to

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.