Is there a reason I can’t find any information on using the onsubmit
attribute with form_for? I’d hate to gasp hardcode the form tag in.
chad
Is there a reason I can’t find any information on using the onsubmit
attribute with form_for? I’d hate to gasp hardcode the form tag in.
chad
onsubmit is simply a pass-through attribute – AFAIK there is no
processing done by Rails. Onsubmit is used to specify a JavaScript
event handler.
-Bill
you can pass e.g., :html => { :method => :get, :onsubmit =>
‘blahblah;’ } to form_for.
-b
On 2/7/07, Chad A. [email protected] wrote:
Is there a reason I can’t find any information on using the onsubmit
attribute with form_for? I’d hate to gasp hardcode the form tag in.chad
–
Bosko M. [email protected]
http://www.crowdedweb.com/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs