I have a problem with a very simple function that is trying to generate when a text field changes. This seems to be a frequently asked question, but most of the time, it seems, revolves around the top $ (document). Not enough already.
however it pounds me. I have a few other jQuery elements firing correctly, but this one doesn't seem to want it. Any ideas guys?
detection: <input type="text" placeholder="detect value" name="txt_detection" id="txt_detection">
$(document).ready(function() {
$('#txt_detection').on('change, keyup', function(){
alert "oops!";
});
});
I have a fiddle too: https://jsfiddle.net/hzmjjzd9/
Any help gratefully received.
source
share