On Mar 21, 3:21 pm, "jko170" <[EMAIL PROTECTED]> wrote:
> the .reset method clears my text fields but leaves the select lists in
> their current state. Even worse, if the form is posted again, those
> select lists option value won't even be in the parameter hash. How can
> I get the selects to return to their default state (without reloading
> the url)?
Which reset method? Prototype.js's Form.reset method just wraps the
form's reset method:
var Form = {
reset: function(form) {
$(form).reset();
return form;
},
Try:
$('formID').reset();
which uses the form's buit-in method.
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---