Reputation: 757
I'm making a phonegap application with jQuery Mobile.
Here the thing. I've got an input field like this one, at the end of fieldset :
<div data-role="fieldcontain">
// Various fields
<input type="number" id="txtMesure"/>
</div>
When I click on it with my Android device, it shows the numeric keyboard with a "Next" button, like this :
When I click on the Next button while filling the previous fields, it automaticaly focus the next field, but with this one, the last of the fieldset, it obviously does nothing.
Is there a way to bind an action when I click on this "Next" button ?
I've tried many events like keyup, keydown, keypress, change, input but the "Next" button never trigger any of these events.
Upvotes: 2
Views: 1781
Reputation: 20239
I would give .focusout() a try. If there is nothing else to focus, maybe add an invisible input field; though this is quite a cheesy solution..
Upvotes: 1