I have the following function:
$(document).ready(function() { $(\"#dSuggest\").keypress(function() { var dInput = $(\'input:text[name=dSuggest]\'
I was looking for a ES6 example (so it could pass my linter) So for other people who are looking for the same:
$('#dSuggest').keyup((e) => { console.log(e.currentTarget.value); });
I would also use keyup because you get the current value that is filled in.