When I click on the input field, my function doesn't work and I can't see any errors.
function GetInput() {
var inputValue = document.getElementsByClassName("input_val").value;
console.log(inputValue);
}
JSFiddle: https://jsfiddle.net/Mau5/ubh3Lpaj/7/