title: Update textbox value when a button is clicked
body: <p>Here is my problem, when i click the submit button, the textbox doesn't show any value 
  Is there any mistakes, i am just a newbie
  Thank you very much</p>
  
  <pre><code>    &lt;form id="form1" name="form1" method="post" &gt;
  
        &lt;p&gt;
          &lt;input type="submit" name="setValue" id="setValue" value="submit" onclick="setValue()"/&gt;
        &lt;/p&gt;
        &lt;p&gt;
          &lt;label&gt;
            &lt;input type="text" name="bbb" id="bbb" /&gt;
          &lt;/label&gt;
         &lt;/p&gt;
      &lt;/form&gt;
  
      &lt;script type="text/javascript"&gt;
      function setValue()
      {
          document.getElementById('bbb').value="new value here";
      }
        &lt;/script&gt;
  </code></pre>