title: make submit button disappear when clicked
body: <p>I wanted to know if there was a way I could adapt this code so that when the submit button was clicked, it would disappear, but the input box would remain.     </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
   var Text = 'hello';
  
      function setInput(button) {
         var buttonVal = button.name,
         textbox = document.getElementById('input_' + buttonVal);
         textbox.value = Text ;
      }
  &lt;/script&gt;
  
  &lt;html&gt;
        &lt;input class='input' id="input_a1" name="a1" value="&lt;?php {echo $a1;} ?&gt;"&gt; 
        &lt;input type='submit' name='a1' value='x' onclick='setInput(this); return false;'&gt;
  &lt;/html&gt;
  </code></pre>