Submit a form programmatically, triggering its submit handlers.