docs: function(keypath, options, attributes) {
        var option_html = "", selected;
        attributes = $.extend(this._attributesForKeyPath(keypath), attributes);
        selected = attributes.value;
        delete attributes['value'];
        $.each(options, function(i, option) {
          var value, text, option_attrs;
          if ($.isArray(option)) {
            value = option[1], text = option[0];
          } else {
            value = option, text = option;
          }
          option_attrs = {value: getStringContent(this.object, value)};
          // select the correct option
          if (value === selected) { option_attrs.selected = 'selected'; }
          option_html += simple_element('option', option_attrs, text);
        });
        return simple_element('select', attributes, option_html);
      }