JavaScript Typeahead Select List Supporting Tree Structure typeahead select list,typeahead select dropdown,typeahead select only from

I'm trying to create a select list control that supports data with a tree structure and has typeahead capability.

The data looks like this:

Category
    -> SubCategory
Category2
    -> SubCategory
        -> SubSubCategory
Category3
Category4

I would like the full parent->child structure to be displayed in the dropdown when the typeahead targets the SubSubCategory.

The closest I've come is using chosen: http://harvesthq.github.io/chosen/

This supports one level of nesting, but because <optgroup> tags are not nestable in html that's as many levels as you can go.

Is there an alternative library that supports this, or how would you patch chosen to support this?

Answer:1

I'm using the Twitter oembed api, and now have the following code on my page: <div class='row'> <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" ...

I'm using the Twitter oembed api, and now have the following code on my page: <div class='row'> <iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" ...

  1. center twitter embed
  2. center twitter embed wordpress
  3. centre twitter embed

If I try to extend an entity in Breeze via constructor with something like: breeze.EntityManager('ServiceUrl').metadataStore.registerEntityTypeCtor( 'customer', function () { this.orders = ko....

If I try to extend an entity in Breeze via constructor with something like: breeze.EntityManager('ServiceUrl').metadataStore.registerEntityTypeCtor( 'customer', function () { this.orders = ko....

I am creating an object var testobj=function(x) { var b,c; var a=x; var init=function(d,e,f) { a=d; b=e; c=f; }; return{ init:init, b:...

I am creating an object var testobj=function(x) { var b,c; var a=x; var init=function(d,e,f) { a=d; b=e; c=f; }; return{ init:init, b:...

I have a question about Javascript. I want to set some paragraphs on my page to hidden when the page loads, then have the paragraphs accessed by clicking on the heading. This is the html: <div id="...

I have a question about Javascript. I want to set some paragraphs on my page to hidden when the page loads, then have the paragraphs accessed by clicking on the heading. This is the html: <div id="...