# File lib/cgikit.rb, line 2868
        def to_s
                to_s = '<select'
                if @attr_name then to_s << " name=\"#@attr_name\"" end
                to_s << other_attributes_string
                to_s << ">\n"

                if @attr_default then
                        to_s << '<option value=""'
                        if @attr_selected == nil then
                                to_s << " selected"
                        end
                        to_s << ">#@attr_default</option>\n"
                end

                if @attr_list then
                        item = index = value = nil
                        @attr_list.each_with_index do | item, index |
                                to_s << "<option"
                                if @attr_selected == item then
                                        to_s << " selected"
                                end
                                if @attr_values then
                                        value = @attr_values[index].to_s
                                        if @attr_selected == value then
                                                to_s << " selected"
                                        end
                                        if @attr_escape then
                                                value = CKUtilities.escape_html value
                                        end
                                        to_s << " value=\"#{value}\""
                                end
                                to_s << ">"

                                # escape
                                if @attr_escape then
                                        item = CKUtilities.escape_html item
                                end
                                to_s << "#{item}</option>\n"
                        end
                end

                to_s << '</select>'
        end