I have a text input:
<input class="stops" id="stops" onchange="stopsChanged();">
And my current JavaScript looks like:
<script>
function stopsChanged(){
alert();
}
</script>
But when I run my code, I get this error:
ReferenceError: stopsChanged is not defined
Why am I getting this error?