Write on input box
Write on input box
Hi,
I´m try to adapt this script: Creating a Keyboard with CSS and jQuery to input information on a input box.
The tutorial works on:
- <textarea id="write" rows="6" cols="60"></textarea>
But i need to change to a input box:
- <input name="password" id="password" class="inputtext" maxlength="40" type="password">
On:
- $(function(){
- var $write = $('#write'),
- shift = false,
- capslock = false;
-
-
- });
I try to change de line 2 for
- var $write = $('#password'),
But not work.
Im very new in jQuery and any help is welcome.
Regards,
Carlos