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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:19:11+00:00 2026-06-14T15:19:11+00:00

I have a DoJo FilteringSelect created from <select> . How I can make one

  • 0

I have a DoJo FilteringSelect created from <select>.

How I can make one (not selected) option as disabled dynamically?

Thanks

UPD: is it possible to REMOVE this element when FilteringSelect was created by PARSE?

  • 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-06-14T15:19:12+00:00Added an answer on June 14, 2026 at 3:19 pm

    Looks like there’s a “disabled” attribute on __SelectOption. When you pass in options, try setting “disabled” to true.

    new dijit.form.Select({
        id: 's2',
        options: [
            {label: 'this is disabled', value: 1, disabled:true},
            {label: 'this is enabled', value: 1}
        ]
    }
    

    See http://jsfiddle.net/ur87d/

    Edit: You said dynamically… So you’ll want to use updateOption or removeOption.

    dojo.ready(function() {
        var s2 = new dijit.form.Select({
            id: 's2',
            options: [{label: 'one', value: 1},{label: 'two', value: 2}]
        });
        s2.updateOption({label: 'one-updated', value: 1, disabled: true});
        s2.placeAt(dojo.body());
    });
    

    See http://jsfiddle.net/ur87d/1/

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

Sidebar

Related Questions

I have the following source code for a select: <select id=_conteneurNum_id name=conteneurNum data-dojo-type=dijit.form.FilteringSelect> <option
I have a dynamic dojo form in which I have a dijit.form.Select whose selected
I have a Dojo Datagrid in one of my pages (which contains more content)
I have a dojo layout with two content panes, each at 50% height, one
How can I have a dojo InlineTextBox that has autoSave=false but saves changed text
I have a dojo define function like this one define([ // some param ]),function(foo,
I have a dijit.form.FilteringSelect component and I want to change the options dynamically. But
I have a quick question How many dojo filteringselects can I have on a
I have a dijit.form.FilteringSelect using a dojo.store.JsonRest instance as the store. My back end
I have a dojo.datagrid in one of my pages. Datagrid and its store(by calling

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.