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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:34:48+00:00 2026-05-27T14:34:48+00:00

I am using dojo script to create custom dropdown list. when I create dropdown,

  • 0

I am using dojo script to create custom dropdown list. when I create dropdown,

dojo.forEach(tags, function(tag) {
              var option = dojo.create("option", {
                                     innerHTML: tag.name    
                                     });
                                dojo.place(option, Select);
                            });

                    });

I create this drop-down to achieve the autocomplete.

Now the problem is I would like some of the opitions disabled, so user cannot select them.

how can I do this?

  • 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-27T14:34:48+00:00Added an answer on May 27, 2026 at 2:34 pm

    AFAIK and was trying there is not such a possibility. I think it makes very little sense to mix autocomplete with disabled values. Possible solutions:

    1. Get rid of autocomplete feature and use dijit.form.Select or native Select, both works fine with <option disabled="true"></option>.
    2. Use dijit.form.FilteringSelect and don’t add or dynamically remove options you want to disable.

    Please note that dijit.form.FilteringSelect and dijit.form.ComboBox are primarily designed to work with model based on API of dojo.data and from Dojo 1.7 also dojo.store. You should update Model (dojo.data/dojo.store) because View (FilteringSelect/ComboBox) is observing the model and updates UI when needed. See my jsFiddle examples.

    N.B.: If you are not familiar with dojo.data API and you can use the latest version of Dojo don’t bother to dive into dojo.data API and start with dojo.store. It’s terribly wrong and complicated way to manage model via dojo.data.

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

Sidebar

Related Questions

I'm using the following html to load dojo from Google's hosting. <script src=http://www.google.com/jsapi></script> <script
I'm using dojo.xhrPost to sent Ajax Requests The call is wrapped by a function
I'm looking at using the Dojo Objective Harness (DOH) for testing some custom JavaScript
I'm trying to create a DOJO DataGrid populated using a dojo.data.ItemFileReadStore with very simple
I'm loading data using dojo.io.script.get. Size of each request can be big and I
I am stuck with using Dojo to accomplish this. Basically what I am trying
I'm using Dojo.dnd to transfer items between to areas. The problem is: the items
I am currently working on a project that is using Dojo as the js
I am extensively using declarative dojo DataStores in my application and connecting them to
I have been using Dojo hosted on Google's CDN. I just downloaded the development

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.