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

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

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

                to_s << '</select>'
        end