I'm trying to get the value of an input field after pasting text into it. How come when I access $(this) here, that it's referencing m.fn.init [Window]
?
$("#contract-billing-card-number").on('paste', function() {
setTimeout(function() {
console.log($(this)); // returning window, expecting #contract-billing-card-number
console.log($(this).val()); // trying to get value
}, 1);
});