I am trying detect when a textarea becomes full for creating pagination effect. Using the .length property will not work, however, because long words \'jump\' to new lines.
In runtime, you may listen to the key-press event of the textarea, pass the textarea.val() value into a hidden , then get mypre's width or even height $("#mypre").width(). It's your decision how you'll work with the "simulated" width/height.