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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:35:50+00:00 2026-05-11T10:35:50+00:00

In GMail, the user can click on one checkbox in the email list, hold

  • 0

In GMail, the user can click on one checkbox in the email list, hold down the Shift key, and select a second checkbox. The JavaScript will then select/unselect the checkboxes that are between the two checboxes.

I am curious as to how this is done? Is this JQuery or some basic (or complex) JavaScript?

  • 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. 2026-05-11T10:35:51+00:00Added an answer on May 11, 2026 at 10:35 am

    I wrote a self-contained demo that uses jquery:

    $(document).ready(function() {     var $chkboxes = $('.chkbox');     var lastChecked = null;      $chkboxes.click(function(e) {         if (!lastChecked) {             lastChecked = this;             return;         }          if (e.shiftKey) {             var start = $chkboxes.index(this);             var end = $chkboxes.index(lastChecked);              $chkboxes.slice(Math.min(start,end), Math.max(start,end)+ 1).prop('checked', lastChecked.checked);         }          lastChecked = this;     }); });
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script> <html> <head> </head> <body>     <input type='checkbox' id='id_chk1' class='chkbox' value='1' />Check 1<br/>     <input type='checkbox' id='id_chk2' class='chkbox' value='2' />Check 2<br/>     <input type='checkbox' id='id_chk3' class='chkbox' value='3' />Check 3<br/>     <input type='checkbox' id='id_chk4' class='chkbox' value='4' />Check 4<br/>     <input type='checkbox' id='id_chk5' class='chkbox' value='5' />Check 5<br/>     <input type='checkbox' id='id_chk6' class='chkbox' value='6' />Check 6<br/>     <input type='checkbox' id='id_chk7' class='chkbox' value='7' />Check 7<br/> </body> </html>

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

Sidebar

Related Questions

On GAE, a non-gmail user can create a Google Account using their non-gmail email
Hi i'm making an app which need to get user's gmail account contact list
The following query was successful when I used in mysql INSERT INTO user(`dev_id`,`email`) VALUES('123','456@gmail.com');
How can you send an email by jQuery and PHP if the user flags
I am designing an email system similar to Gmail, and when the user clicks
i am making an email application,where user can set his time to send email?
In my python program, when I send the user to create a gmail account
I'm working on a web-based application, and looking to integrate each user's e-mail (gmail,
Is there a way to select more than one files to upload when a
I have a treeview menu where user can drag something and drop on a

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.