After a customer presses any key, I would like to check an email. Below is the code I am using:
document.observe("dom:loaded", function() {
$('billing:email').observe('keypress', function(event){
console.log(event.element().value);
});
});
When I press "D", the log prints "".
If I then press "S" after pressing "D", the log will print "D".
How can I retrieve the actual current input value?