On iOS browser forms, an accessory bar is shown with Done button and next/prev buttons to move between fields. I would like to capture the Done button click event on the accessory Bar and perform some custom action. JQuery/ JQuery mobile solutions are welcome.
I do not want to use blur/focusout, because blur is called even when other elements are tapped. I would like to submit the form when this Done button is called and not submit when other actions happen.
I have already tried binding the keypress event with keycode 13. But it captures only the event when user presses done/submit key on the bottom of the keyboard and not the button on accessory bar.