title: Javascript: how to change form fields value with single click
body: <p>I'm trying to set the value of three different input text fields with an onclick function.</p>
  
  <p>I have an image that has this code...</p>
  
  <pre><code>&lt;img src="images/delete_row.png" width="25" onClick="clearRow(0);" /&gt;
  </code></pre>
  
  <p>And I have three input text fields that all have the id of "0".</p>
  
  <p>When I click my image I want to set the value of all three fields to empty.</p>
  
  <p>Can someone please help me write a function that can do this?</p>
  
  <p>Thanks!</p>