prova così:

codice:
<input type="text" value="0" onblur="if (this.value=="") this.value="0";" name="campo" />
ciao