I have a textarea. After the user types X number of characters in the textarea I want a few different events to fire.
- append the first X characters typed into another textfield.
- expand the textarea to give more room to continue typing
I know I can use keypress events in jquery, but how can I set off a event after say 25 characters have been typed?
I'm current trying this:
$('#post-content-field').keyup(function () {
$('#post-title-field').val($("#post-content-field").val()).trigger('change');
});