What is the problem with this code?

```
var lines = document.getElementById('id="summoners"').val().split('\n');

//I get error above "Cannot call method val of null

for(var i = 0;i < lines.length;i++)
{
   //other code using lines[i] not necessary to show it
}

```