title: Delete specific text from form when clicked
body: <p>Basically I want to make a function that, when the text is clicked, it prints the 'id' on the form. and when it's clicked again, only that 'id' is deleted (prior clicked/printed 'id's remain).</p>
  
  <p>The print script I have so far:</p>
  
  <pre><code>function imprime01(obj) {
          document.form2.text.value = document.form2.text.value +  obj.title;
           }
  </code></pre>
  
  <p>the div</p>
  
  <pre><code>&lt;div onclick="imprime01(this);" title="240 "&gt;240&lt;/div&gt;
  &lt;div onclick="imprime01(this);" title="230 "&gt;230&lt;/div&gt;
  &lt;div onclick="imprime01(this);" title="220 "&gt;220&lt;/div&gt;
  </code></pre>
  
  <p>So what I want is: when I click 240, 230 it prints "240 230" on the form, and when I click "240" again, it deletes only "240" from the form. Is there a way to achieve this?</p>