Tom Gregory wrote:

> 3. Nothing is selected, or the selected option has no value.

A selected option is allowed to have an empty string as a value, just like text
inputs, etc. But prototype doesn't quite work that way. The following is
perfectly legal in HTML.

<select name="foo">
  <option value="">-- Please Select --</option>
  <option>1</option>
  <option>2</option>
</select>

But if the first <option> is selected, Form.Serialize will send "-- Please
Select --" as the value instead of "".

-- 
Michael Peters
Developer
Plus Three, LP

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to