MCQs > IT & Programming > JavaScript > Consider the following code:
Which is the best method to get the line number of the form's text area?

JavaScript MCQs

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?

Answer

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

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it