I think you can't use the html tags in this manner for this you have to specify and ID for each tag and then access in the jQuery function.
$('#btn').click(function(){
var arrayOfLines = $('#gps').val().split('\n');
$.each(arrayOfLines, function(index, item) {
$this = $(this);
console.log($this);
});
});