The timeout of 0 is used here so that the keypress has time to end before blurring the control. This strikes me as the wring way to achieve this...
$(document).keypress(function(e){
if( e.keyCode === 13){
setTimeout(function(){
$('input').blur();
}, 0);
}
});
What is a better way to blur controls when the enter key is pressed?