Topic: OnSubmit in a form_tag

Is there anyway to include the onSubmit option in a form_tag seperate from an Ajax call??

Blessed Be

Phillip

Re: OnSubmit in a form_tag

form_tag users_url(), :onSubmit => 'alert("Hi"); return false;' do
...


form_tag({:controller => :users, :action => 'create'}, :onSubmit => 'alert("Hi"); return false;') do
...

Vincent Woo Ruby on Rails Blog