Good afternoon, I need to increase the rows in the textarea and increase the height of the block itself, if a new line has started (as in Skype). Is it possible to check whether a new line has started using jq? Thank.
1 answer
Found an answer to your question.
Maybe someone will come in handy: checking area.scrollTop (), if it grew, then I increase the rows and the size of the block itself.
Thanks to all
- I just wanted to write about it, okay) - Yuri
- An unusual decision - to check whether scrolled appeared =) But I agree) By the way - mark your answer as "the answer to the question". This is a tick next to <--- " - alexoander
|
textarea.rowsand make +1 for all values above 1. Read here (some attributes of html5 only) w3schools.com/jsref/dom_obj_textarea.asp - alexoander