On Tue, Jul 1, 2008 at 11:09 AM, louis w <[EMAIL PROTECTED]> wrote:
> Nice one. .click() works. Thanks.

If you have an inline JavaScript handler for the submit event, then
you can fire it by just calling onsubmit like a method.

Given:

<form onsubmit="doStuff()" id="my-form">
...
</form>


$('my-form').onsubmit()

Think of it as a named method just waiting to be invoked.

-justin

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to