add an invisible submit link to the page:

<input type="submit" style="display: none;">

Tell the form which button 'return' should be attached to:

form.setDefaultButton(ajaxSubmitButton);

  • No labels