Feel free to contact me at [email protected]
This jQuery plugin will emulate typing of the input string into one or several text fields ( or <textarea></textarea>). The plugin does this by iterating throught the input string and setting the elements value character by character while triggering the proper keyboard events.
Download the .js file in the lib directory and put it in your page.
<script type="text/javascript" src="jquery.send_keys-XXX.js"></script>You're ready to go.
$('#someInputId').send_keys('hello');
Will type 'hello' in the element with id="someInputId", provided that the element in a text input or a textarea
$('textarea').send_keys('world');
Will type 'world' in all <textarea>s on the page
In the tests directory you will find QUnit based unit tests.
Copyright (c) 2010 T. Alexander Lystad [email protected] Licensed under the GPL license, see http://www.gnu.org/licenses/gpl-3.0.html