Use the below script to validate whether it is really empty
<script>
function check(value){
if(value=="" || (typeof(value==='number') && value > 0))
alert("The textfield is empty OR its content (value) is a number greater than 0 (> 0)");
}
</script>
<input type="text" onblur="check(this.value)" />