<input id=t style="float: left"
onkeypress="document.getElementById('s').style.display='inline'"
>
<span id=s style="background: red; font-weight: bold; color: white; cursor: pointer; display: none"
onclick="document.getElementById('t').value =''; this.style.display='none'">
x
</span> |