$( "#block" ).blur(function(){ if ($(this).val() == "" ) $(this).val($(this).autocomplete( "option", "source" )[0]) });