javascript make form dissapear after submitting
<p>I have a form on a html page, with a submit button.</p>

<pre><code>&lt;div id="tt"&gt;
&lt;form method="post" action="time.php"&gt;
&lt;input type="text" name="c"&gt;&lt;br&gt;
&lt;INPUT TYPE="submit" VALUE="givetime"&gt;&lt;/FORM&gt;
&lt;/div&gt;
</code></pre>

<p>time.php is just an echo of the current time.  </p>

<p>I have ajax code which returns:</p>

<pre><code>if(ajaxRequest.readyState == 4){
    document.myForm.tt.innerHTML= ajaxRequest.responseText;
}
</code></pre>

<p>I don't want to use jquery for this as I want to see if it possible this harder way first...Any idea why this is not working?</p>
