code: function() {
        var elt = this.$input[0],
            container = this.$container[0];
        while(elt && elt.parentNode !== container)
          elt = elt.parentNode;
  
        return $(elt);
      }
docs: Returns the element which is wrapped around the internal input. This
  is normally the $container, but typeahead.js moves the $input element.