SyntaxFix
Write A Post
Hire A Developer
Questions
Try this.
var lines = $('textarea').val().split('\n'); for(var i = 0;i < lines.length;i++){ //code here using lines[i] which will give you each line }