I fixed the problem. I was creating the whole <select> using innerHTML. Instead of that I used js to populate the select using JSON retrieved via AJAX and that worked fine.
Iggy On Wed, 05 Jul 2006 12:11:08 -0400, Michael Peters <[EMAIL PROTECTED]> wrote: > > > 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 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs