Jedrin wrote:
> I accidentally figured out a sort of hack way to clear a form. I saw
> you can write javascript to do this, but if you re render the form in
> a partial with a different name for the form like
> name='something224554' based on a random number, it clears the form
> (at least in FF). I am curious how acceptable or lousy way people
> might think this is.

It's clever but unnecessary.  <input type="reset"> already exists in 
HTML, and has the same effect.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to