title: set value of hidden input value from ajax
body: <p>My ajax request responds with a newtimestamp variable that I need to set on the hidden input field 'time'.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>$("#time").value(data.newtimestamp);
  </code></pre>
  
  <p>However this shows this error:</p>
  
  <pre><code>Uncaught TypeError: undefined is not a function 
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;input type="hidden" value="&lt;?php echo "$timestamp"; ?&gt;" name="time" id="time" /&gt;
  </code></pre>