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

The Archive Base Latest Questions

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

I have a question, regarding how the select text box is supposed to perform

  • 0

I have a question, regarding how the select text box is supposed to perform multiselect. Basically, for the below HTML, I’d like to know why Chrome won’t allow me to select using only the mouse. There are no problems, using click + Ctrl/Shift, but when I try to select by left-click + dragging the mouse over items in the list, nothing happens. Both FF and IE support this kind of selection.

What I would like to know, is if I could get around the problem without using ridiculous amounts of JavaScript to reinvent selection; secondly, why does this happen.

A sample select:

<select id="ListBoxFound" multiple="multiple" name="ListBoxFound">
  <option value="756">Teacher Assistants </option>
  <option value="744">Teachers and Instructors, All Other </option>
  <option value="284">Team Assemblers </option>
  <option value="775">Technical Directors/Managers </option>
  <option value="794">Technical Writers </option>
  <option value="227">Telecommunications Equipment Installers and Repairers, Except Line Installers </option>
  <option value="259">Telecommunications Line Installers and Repairers </option>
  <option value="478">Telecommunications Specialists </option>
  <option value="1036">Telemarketers </option>
  <option value="1041">Telephone Operators </option>
  <option value="1052">Tellers </option>
  <option value="171">Terrazzo Workers and Finishers </option>
  <option value="725">Textile Bleaching and Dyeing Machine Operators and Tenders </option>
  <option value="726">Textile Cutting Machine Setters, Operators, and Tenders </option>
  <option value="1075">Textile Knitting and Weaving Machine Setters, Operators, and Tenders </option>
  <option value="333">Textile Winding, Twisting, and Drawing Out Machine Setters, Operators, and Tenders </option>
  <option value="337">Textile, Apparel, and Furnishings Workers, All Other </option>
</select>
  • 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-20T01:15:16+00:00Added an answer on May 20, 2026 at 1:15 am

    I ended up simulating this behavior by attaching event handlers to mouseUp, mouseDown and mouseOver events. I use mouseUp and mouseDown to control whether it’s selecting or not, and the actual selection happens in mouseOver.

    <script>
    $(document).ready(function () {
    var sele = false;
    var last = null;
    $("select#ListBoxFound>option").mouseup(function(){
        $(this).attr('selected', sele);
        sele = false;
    }).mousedown(function(){
      $(this).attr('selected', sele);
        last = $(this);
        sele = true;
    }).mouseover(function() { 
        if (sele) {
            var oldv =  $(this).attr('selected');
            if(oldv == last.attr('selected')) {
                last.attr('selected', !oldv);
            }
            $(this).attr('selected', !oldv);
            last = $(this);
        }
        });
    });
    </script>
    

    The purpose of complicating the function with last and oldv is that onMouseOver only fires once if you’re changing the direction of selection; for instance, if you start selecting downwards, and then go up, the last option the mouse has touched will remain selected, and every option above it will deselect.

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

Sidebar

Related Questions

I have a question regarding clearing an input text field when a different drop
I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record
I have a question regarding an update function I created... CREATE OR REPLACE FUNCTION
I have a question regarding handling errors in a J2EE application. Our current application
I'm writing a small webapp in Grails and I have the following question regarding
Following on from my recent question regarding parsing XML files in Java I have
I have a question about best practices regarding how one should approach storing complex
I have a simple question and wish to hear others' experiences regarding which is
Greetings, I have two questions regarding a DataTable.Select(): 1) How to escape potential apostrophes
I have the below linq query which takes a text field which may be

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.