lisak
lisak

Reputation: 21981

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.

Upvotes: 1

Views: 526

Answers (1)

unomi
unomi

Reputation: 2672

Use your validators .validate() method ;)

Upvotes: 1

Related Questions