Hey guys i have a problem.
I'm trying to get the value of a input type "text" but sadly i can't.
here's my code.
<input type="text" id="numb" name="inputBox" placeholder="Search for a movie" />
<input type="submit" value="Search" onclick="myFunction()">
<br />
<script>
function myFunction() {
var user_input = document.getElementById('numb').value
}
console.log('user_input');
</script>