I have a form composed of two fields.  

Once the form filled, I'd like to get the two fields in a console.log that would display 'Field 1 ' + field1 + 'Field 2 ' + field2.  

I know how to make it to display the value of one field but I'm getting stuck on doing this in two fields.. 

How would it be possible to complete this ? 

Here is the HTML part : 

```
<form name="Test">

<div class="form-group col-md-9">
<label for="inputState">Field1</label>
<select id="sel-inv" name="sel-inv" class="form-control">
    <option value=""></option> 
    <?php
    while($data1 = pg_fetch_array($queryInv)) 
        { 
        echo ("<option value=". $data1['gid'].">". $data1['gid']. "</option>"); 
        }
    ?>                                              
</select>
</div>

<div id="nom-dossier" class="form-group col-md-4">
<label for="exampleInputPassword1">Field2</label>
    <input type="text" class="form-control" id="nom-dossier-sel" name="nom-dossier-sel">
</div>

</form>

```

And that's the JS part :

```
<script>
document.getElementById('sel-inv').addEventListener('input', function() {
var field1 = this.value;
console.log ('Field 1 ' + field1);
});
</script>

```

Thanks for the help !