I noticed prior to posting this question that there have been similar questions posted on this topic before, however the user isn\'t interacting with the text field by using
var target = $('#target'),
val = target.val();
function monitor()
{
var current_val = $(this).val();
if (current_val != val) {
console.log('changed from', val, 'to', current_val);
val = current_val;
}
}
target.keypress(monitor);