Mottie / Keyboard

Virtual Keyboard using jQuery ~
http://mottie.github.io/Keyboard/
Other
1.78k stars 723 forks source link

issue:: getting copy of first textbox into another in a same div but different ids through keypad input ?? #563

Closed naeemh93 closed 7 years ago

Mottie commented 7 years ago

Hi @naeemh93!

An additional input/textarea is added when usePreview is true. This element will not include any ID. If using the caret extension, another element is added to help in calculating an accurate caret position. Both of these additional elements will have a class name of ui-keyboard-preview added.

To make sure you're only targeting your original input, use the ID or use

$('input, textarea').filter(':not(.ui-keyboard-preview)');

to get the correct elements.

If that doesn't resolve the issue, please modify this demo to show the HTML structure and initialization code being used.

Mottie commented 7 years ago

I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread.