JQuery Text Input Autocompletion For a Tree of Values
===

Everybody

I have a text input which content should be limited to a set of values. Those values are of the form dependency1,dependency2,dependency3, so they form a tree. I would like to offer a smart auto-completion for this field that knows about this structure. For example, the structure is something like this:

    Engineering
      Electric
        Communication
        Power
      Electronic
        Computation
        Control
    Economy
      Economy
      Accounting
    Education
      Basic
      Language
        English
        French
      Sciences
        Math
        Physics
  
So once the user has typed enough letters, the first dependency should be completed and it should be ready to auto-complete the next dependency. If some options appears in a popup, they should be limited to the dependency we're on and not all the tree.

Do you know any jQuery (or otherwise) library that offers something like that?

Thanks in advance.

