Is there a quick, easy way of limiting the amount of rows a user can enter in a textarea, using jquery/javascript?
Thanks,
Is there a quick, easy way of limiting the amount of rows a user can enter in a textarea, using jquery/javascript?
Thanks,
I don't think there's any concept of rows as it pertains to the user's input (the rows
attribute is only concerned with the initial size of the element), and since some browsers (Chrome) allow you to easily resize textareas, anything you come up with wouldn't be fool-proof.
If anything, you should just figure out the rough amount of characters that you want to allow, and then check the length of the data.