javascript - How to check if certain row in textarea is empty? -


How is some line in tester empty with javascript?

  & lt; Script type = "text / javascript" src = "../../../ js / jquery-1.3.2.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .bind ('keydown', function (e) {if (ehiiic == 13) {function hierarchy (idoftextairea, line) {return dollar ("#" + idoftextarea) [0]. Original value ("\ N") [line1] == "";} alert (IROOPTY ("textart", 3));}}); & Lt; / Script & gt; & Lt; Textarea id = "txtarr" rows = "30" & gt; & Lt; / Textarea & gt;  

But it always falsifies

  / / Suppose that you are using jQuery or equivalent functionRearApT (idOfTextArea, line) {return $ ("#" + idOfTextArea) [0] .value.split ("\ n") [line -1] == ""; }  

Comments