重複の可能性:
<textarea>の行数を取得するにはどうすればよいですか?
私はaを持っていて、以下のようにtextarea
書きます。次のコードボックスがaであり、Enterキーが2回だけ押されたと想像してください。7 lines
2 new line character
textarea
A text box, text field or text entry box is a kind of widget used when building
a graphical user interface (GUI). A text box purpose is to allow the user to
input text information to be used by the program.
User-interface guidelines recommend a single-line text box when only one line of
input is required, and a multi-line text box only if more than one line of input
may be required.
Non-editable text boxes can serve the purpose of simply displaying text.
もう少し行を書いた後、今textarea line count
ならn
。の値を計算するにはどうすればよいn
ですか?
質問に答える前に明確にしてください。new line characters
このように私のテキストにいくつあるかを数えたくありません。テキストエリアの行数を取得するにはどうすればよいですか?
MicrosoftWordがパッセージから数えるのと同じように行数を数えたい。
jQueryはありません...