This question has probably been asked and answerd a thousand times before, but I don't know if it's because of SEO, I've not found a suitable solution. I either get undefined or blank text in Chrome.
$('input[type="text"]').on('input', (a, b) => {
console.log(this.value);
});
This keeps returning undefined in the console I've also tried:
$('input[type="text"]').on('input', (a, b) => {
console.log(b);
});
$('input[type="text"]').on('input', (a, b) => {
console.log($(this).val());
});
$('input[type="text"]').on('input', (a, b) => {
console.log(a.value);
});
$('input[type="text"]').on('input', (a, b) => {
console.log(b.value);
});
Any idea's would be very appreciated.