How get an array of the values of elements which have same class?

When I do this I get only the first element, but I want a whole array:

```
var classes = document.querySelector(".klass").value;
alert(classes); //Outputs only the first element

```

And I want to get a full array of the values of the inputs:

```
<input type="text" class="klass" />
<input type="text" class="klass" />
<input type="text" class="klass" />

```

Is that possible?