title: How show checkbox value before submit OR there itself when ticked?
body: <p>I have the following codes:</p>
  
  <pre><code>&lt;form method="post"&gt;
  &lt;input type="checkbox" name="fruit[]" value="apple" id="apple" /&gt;&lt;label   for="apple"&gt;Apple&lt;/label&gt;&lt;br /&gt;
  &lt;input type="checkbox" name="fruit[]" value="pinapple" id="pinapple" /&gt;&lt;label for="pinapple"&gt;Pinapple&lt;/label&gt;&lt;br /&gt;
  &lt;input type="checkbox" name="fruit[]" value="grapefruit" id="grapefruit" /&gt;&lt;label for="grapefruit"&gt;Grapefruit&lt;/label&gt;&lt;br /&gt;
  &lt;input type="submit" name="go" /&gt;
  &lt;/form&gt;
  &lt;?php 
  $fruitList = implode(', ', $_POST['fruit']);
  echo $fruitList;
  ?&gt;
  </code></pre>
  
  <p>It will show the checked items after submit. Is this possible show the ticked items values inside a input box before submitting.</p>