I have a div element and its innerHTML is some number of lines, loaded at runtime from the file.
i need to count the number of lines of that div element. i didn't get any idea about that!
idea please!
Perhaps if you supply a little more detail, we can help. Identifying a passage by "line" is really difficult and probably non-deterministic.
Perhaps the passage that needs to be modified can be identified as a <span> or other element that'll make this a whole lot easier and less error-prone.