Class: WWW::Mechanize::Form::MultiSelectList

Class | WWW::Mechanize::Form::MultiSelectList
In: | lib/www/mechanize/form/multi_select_list.rb
Parent: | Field

This class represents a select list where multiple values can be selected. MultiSelectList#value= accepts an array, and those values are used as values for the select list. For example, to select multiple values, simply do this:

     list.value = ['one', 'two']

Single values are still supported, so these two are the same:

     list.value = ['one']
     list.value = 'one'

### Methods

new query_value select_all select_none selected_options value value=

### Attributes

options | [RW] |

### Public Class methods

new(name, node)

### Public Instance methods

query_value()
select_all()

Select all options

select_none()

Select no options

selected_options()

Get a list of all selected options

value()
value=(values)

[Validate]