I assume the u id field of your addr input address is just add this code to the onclick event of your searchforaddress button
document.getElementById('addr').value="";
like this (i guess ur searchforaddress button)
document.getElementById('searchforaddress').onclick=function() { document.getElementById('addr').value=""; };
lovesh
source share