Using Javascript to change a value in a textbox
<pre><code>&lt;input id="NameAjax" class="ac_input" type="text" value=""&gt;
</code></pre>

<p>And using jquery:</p>

<pre><code>).click(function(e) { 
document.getElementById("NameAjax").value = 1;
}
</code></pre>

<p>But after the click the value does not change:</p>

<pre><code>&lt;input id="NameAjax" class="ac_input" type="text" value=""&gt;
</code></pre>

<p>I am looking for the output to look exactly like:</p>

<pre><code>&lt;input id="NameAjax" class="ac_input" type="text" value="1"&gt;
</code></pre>

<blockquote>
  <p>How to fix it ?</p>
</blockquote>
