-
Notifications
You must be signed in to change notification settings - Fork 723
Closed
Description
Dear Mottie,
Thank you for your great work, I am very appreciated with this fancy script.
I have a problem, when I call destroy method, I always get from the console
Uncaught TypeError: Cannot read property 'el' of nullWhat I want is user click open keyboard, and still could key in normally.
Although it still works as I wish, any suggestion to fix? Here is the html & code I use
<form>
<a id="ekeyboard" href="#">show keyboard</a>
<input type="text" id="txtPassword" name="txtPassword">
</form>
<script>
$("#ekeyboard").on('click',function(){
$('#txtPassword').keyboard({
beforeClose: function(event, keyboard, el) {
keyboard.destroy();
}
});
$('#txtPassword').focus();
});
</script>Reactions are currently unavailable