# Disable certain chooses in combox

**URL:** https://forum.kirupa.com/t/disable-certain-chooses-in-combox/174386
**Category:** Uncategorized
**Created:** [January 5, 2006, 9:16am UTC](https://forum.kirupa.com/t/disable-certain-chooses-in-combox/174386 "2006-01-05T09:16:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mikkeschiren](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mikkeschiren](https://forum.kirupa.com/u/mikkeschiren)
#### Post date: [January 5, 2006, 9:16am UTC](https://forum.kirupa.com/t/disable-certain-chooses-in-combox/174386/1 "2006-01-05T09:16:35Z")

</div>

I want to diasable som of the possible chooses from an combobox menu - I still want them to have text, but I do not want them to have a textRollOverColor like them I would like to be possible to choose.

My meny is created from a xm-file and put together like this:

```php

if (eureka) {
        var dp:Array = new Array();
        select.dataProvider = dp;
        dp.addItem({label:"Navigera här", data:""});
        minMeny = this.firstChild.childNodes;
        //rubrik = this.firstChild.attributes.name;
        startSida = this.firstChild.attributes.startpage;
        laddaXMLArtikel(startSida);
        for (var i = 0; i<minMeny.length; i++) {
            namn = minMeny*.attributes.name;
            dp.addItem({label:namn, data:""});
            for (var j = 0; j<minMeny*.childNodes.length; j++) {
                namn = minMeny*.childNodes[j].attributes.name;
                fil = minMeny*.childNodes[j].attributes.path;
                dp.addItem({label:' '+namn, data:fil});
            }
        }
}

```
