[jQuery] Is this syntax correct?

[jQuery] Is this syntax correct?


I get no errors, but no response, either.
I tried just using $('#emailaddress').blur... without the "input",
but then I got a val undefined error.
<script>
    
$(document).ready(function() {
        
$('input #emailaddress').blur(function() {
            
if (this.val.length == 0)
$('#emailerror').show();    
});    
});
            
</script>
Thanks,
Rick