You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change a key (or action key) text dynamically? What I'm trying to do is to change the key text of {next] button to 'Submit' when last input box is in focus.
Here is my js code:
$.keyboard.keyaction.next = function (base) {
var parent_fieldset = $('#' + base.el.name).parents('fieldset');
var $prevInput = $('#' + parent_fieldset.attr("id") + ' input:eq(-2)');
//If 2nd to the last input is in focus
if ($prevInput.attr("id") == base.el.name) {
setTimeout(function () {
var keyboard = $('.keyboard-normal').keyboard().getkeyboard();
keyboard.options.display.next = 'Submit';
//keyboard.redraw();
$('.ui-keyboard-next').find("span:contains('Go')").text('Submit');
}, 500);
}
base.switchInput(true, base.options.autoAccept);
return false;
};
It seems to work but when my mouse exited the button the text reverts back to 'Next'.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
The part you needed was to modify the data-html attribute as it is used when you unhover the key; this is because of the mousewheel option allowing you to scroll through the other keysets.
Hi,
Is there a way to change a key (or action key) text dynamically? What I'm trying to do is to change the key text of {next] button to 'Submit' when last input box is in focus.
Here is my js code:
It seems to work but when my mouse exited the button the text reverts back to 'Next'.
Thank you in advance.
The text was updated successfully, but these errors were encountered: