I use jquery function ('# form-id').trigger(' submit') on some drupal form, (for example create article f ...
www.drupal.org