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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:52:08+00:00 2026-05-20T08:52:08+00:00

I have a multiselect on my page using asmselect which works wonderfully. I am

  • 0

I have a multiselect on my page using asmselect which works wonderfully.

I am trying to add another multiselect to the page, but encountering problems. There are about 11,000 options which causes the asmselect take forever to load since it’s looping through the whole list in the asmselect jquery code. Even if I could improve the load time, it wouldn’t be too easy for the user to look through the entire list to find their option.

My thoughts were to add button which would pop-up a dialog (I’m successfully using dialogs elsewhere on the page for adding options to select lists), where the user can enter some filter info and then can select from a filtered list. So, they type 101 and it lists options “10100”, “22101”, “31015” etc. They select “10100”. “10100” displays on the main screen as selected. They can then hit the button again and enter “105” which will give them a new filtered select list and they select “10500” which now shows along with “10100” on the main screen.

First question, is there a better way to handle this?

Second, can I use the formatting for asmselect to display my newly selected items so that it matches with the formatting of my other asmselect and use the built-in functionality with the “remove” for unselecting an item. I’m looking at the asmselect code, but my jquery knowledge is very limited and I can’t figure it out. Could someone point me in the right direction?

  • 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-20T08:52:09+00:00Added an answer on May 20, 2026 at 8:52 am

    I achieved this by having a dropdown list of the options in a dialog using a droplistFilter plugin. When an option was selected from the dropdown and the “add” button of the dialog was clicked, the option was added to my multiselect (using the asmselect plugin) and set to selected and I disabled the option from the dropdown list. In my $(document).ready(function() { I set each selected option in my multiselect to disabled in the dropdown.

            $('#Vendor_IDs').asmSelect({
                sortable: false
            });
            $('#vendor').droplistFilter();
            $('#Vendor_IDs option:selected', this).each(function () {
                $("#vendor option[value='" + $(this).val() + "']").attr("disabled", true);
            });
    
            $('#popupAddVendor').dialog(
            {
                autoOpen: false,
                modal: true,
                width: 600,
                buttons:
                {
                    'Add': function () {
                        var v = $('#vendor').val();
                        if (v.length > 1) {
                            $('#Vendor_IDs').append($('<option></option>').val(v).html($('#vendor option:selected').text()).attr("selected", true));
                            $('#Vendor_IDs').change();
                            $('#vendor option:selected').attr("disabled", true).attr("selected", false);
                            $('#vendor').attr('selectedIndex', 0);
                        }
                        $(this).dialog('close');
    
                    },
                    'Cancel': function () {
                        $(this).dialog('close');
                    }
                }
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my project we have multiselect option which contains more than 50000 records, using
i have to send form data which have multiselect boxes to a servlet using
I have a ListView control that is in FullRowSelect mode, MultiSelect off and using
I have an .aspx page with a databound multi-select jquery dropdown. This works nicley
I have a page with several multiselect drop-down menus. Each menu has a general
I'm having problems with getting items in a multiselect to get selected. I have
I have telerik controls on my page. I am making a vacation calendar using
I have a multiselect grid where I can get schools.getSelectionModel().getSelection(); there is an object
I'm using Datatables and have this jquery plugin showing in a few columns http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
I have jqgrid on my page and the data is loaded correctly but the

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.