iPad related questions
iPad related questions
_jthomas
Posts: 75Questions: 0Answers: 0
1. Using jEditable and tab key is working great in desktop/laptop browsers. Captured the keypress and event code 9. How can I do the same thing in iPad to enable the *next* key?
2. I got a mouseover tooltip thing - I guess mouseover is not supported in iPad right? Are there any other alternatives?
Please advise and thanks very much
2. I got a mouseover tooltip thing - I guess mouseover is not supported in iPad right? Are there any other alternatives?
Please advise and thanks very much
This discussion has been closed.
Replies
[code]
$('#example tbody td').live('keypress', function (evt) {
console.log("keypress: " + evt.keyCode);
if( evt.keyCode == 9 && $('input', this).length > 0) {
/* Submit the current element */
$('input', this)[0].blur();
/* Activate the next element */
$(this).next().click();
return false;
}
} );
[/code]
Added a hidden text box in the next column. That will enable the "Next" key in iPad. Added the blur event handler.
Here is the code
for jEditable
[code]
"placeholder" : ""
[/code]
[code]
$('#example tbody td').live('blur', function (evt) {
$(this).next().click();
});
[/code]