Open NahImGood opened 5 years ago
Hi @NahImGood!
Issue #690 has some code that will initialize the keyboard on dynamically added inputs. Try it out and let me know if it works for you.
Also, input tags are self-closing (i.e. <input />
, not <input></input>
).
Hello, Thank you for this very useful and amazing keyboard! It has been a real life saver so far. I am trying to create input fields from php and use the onscreen keyboard to input some times. The number of input fields changes depending on the database response. My php file returns a table as such:
<td><input class="missedTime" type="text"></input></td>
My goal is to have each input field be able to use the on screen keyboard. I have tried using this code to initiate the keyboard with no luck.
$('#missedTime') .keyboard({ layout: 'time', maxLength: 7, restrictInput: true, // Prevent keys not in the displayed keyboard from being typed in preventPaste: true, // prevent ctrl-v and right click autoAccept: true }) .addTyping();
Im not sure how to go about this anymore and was unable to find any open/closed issues that would help me.
Thank you.