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

I have a ListView control that is in FullRowSelect mode, MultiSelect off and using
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a login.jsp page which contains a login form. Once logged in the
i have a input tag which is non editable, but some times i need
Its like I have multiselect option in Jqgrid in which i want to pass
I have a TListBox with multiselect and ExtendedSelect both set to true. I need
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could
First I'll lay out what I'm trying to achieve in case there's a different
I'm using drupal 6.16 and have a set of taxonomy terms that are set

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.