<script type="text/javascript" language="JavaScript">
function checkZip() {
var url = 'check.php';
var params = 'zip=' + $F('zip');
var ajax = new Ajax.Updater(
{success: 'zipResult'},
url,
{method: 'get', parameters: params, onFailure: reportError});
}
function reportError(request) {
$F('zipResult') = "Error";
}
</script>
This code updates my container zipResult.
My question is: is there a way to update my container zipResult then 5 seconds later clear my zipResult container using ajax and prototype?