How to change textbox value using javascript
<p>I am trying to change a textbox value.
am trying following javascript but in both the alerts am getting image only. ie. 
<code>$('#FileName').val = "testimage.jpg";</code> is not changing the text box field value.</p>

<pre><code>&lt;x:input type="textbox" id="FileName"
width="210px" value=""/&gt;

if ($("#FileName").val() == "image") {
    alert($("#FileName").val())
    $('#FileName').val = "testimage.jpg";
    alert($("#FileName").val())
 } 
</code></pre>
