javascriptdom-eventsyui3

How to simulate a submit event in Javascript or via YUI


I'm using a form validator, that listens to submit events, but I decided to send an ajax post request with form fields, instead of form submission.

Now I don't know how to throw the submit event. YUI's node-event-simulate module can simulate only clicking and mouse events.


Solution

  • Use your validators .validate() method ;)