Reputation:
How to check if certain row in textarea is empty?
Upvotes: 0
Views: 375
Reputation: 950
I know what you're saying, but I've honestly never seen anything like it. You'd need to first be able to find all the rows in a textarea. With the textarea being an HTML element and the rows in it are not, I don't believe this can easily be done. You'd have to somehow append tags around each set of characters that are from start to end and then count those.
So basically you're looking at:
I'm not a JavaScript Guru and I have not written any books, but I've done a lot of JavaScript and jQuery work and from my experience, you would this to be a very troublesome project and may not even be possible to work the way you want it.
Sorry I couldn't help anymore.
What exactly are you trying to accomplish?
Upvotes: 0
Reputation: 16613
document.getElementById('textareaID').value.length === 0
Upvotes: 1