Within my web application, I have successfully linked a jQuery keyboard to a textbox. Now, I am seeking a way to explicitly call the keyboard.close()
function on the keyboard as I am removing all eventListeners from the text field early on.
To achieve this, typically I would use a jQuery method like below:
$('#chat-form').data('keyboard').close();
Unfortunately, due to memory issues, I am unable to utilize jQuery for this task. Are there any alternative methods available to access the data object within an HTMLElement without relying on jQuery?
Regrettably, both elem.dataset.keyboard
and
elem.getAttribute('data-keyboard')
have proven unsuccessful in retrieving the desired information. However, the method of $(elem).data('keyboard')
continues to work effectively.