Consider the following code: <form> <textarea id="foo" name="foo"></textarea> </form> Which of the following is the best method to get the line number of the form's text area?
Correct Answer: <script> foo.value.split(/\r\n|\r|\n/g); </script>
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions