How to programmatically trigger a click on an AJAX enabled form submit button? I'm trying to programmatically (with jQuery) trigger a click on button with AJAX behavior in a Drupal form, but so far jQuery('#edit-submit').click() doesn't do anything.

A real mouse click on that button works as intended. Any ideas how to make it work?
jQuery('#edit-submit').mousedown() - apparently there's a big difference.