JavaScript form attribute null error
<p>I have a java script code which will set some values in a form</p>

<pre><code>function editCategory(categoryId)   {
$.ajax({
    type: "POST",
    url: "/product/fetchEditCategory",
    data: "categoryId=" + categoryId,
    success: function(response){
        var productManagerForm = document.getElementById('productManager');
        productManagerForm.ceName.value = response.catName;........
</code></pre>

<p>My JSP is -</p>

<pre><code>    &lt;form id="productManager" name="productManager" action="/product/" method="post"&gt;
    &lt;div id="editCategory"&gt;
        &lt;tr&gt;
                &lt;td style="font-weight:bold;"&gt;Category Name&lt;/td&gt;
                &lt;td&gt;&lt;input type="text" id="ceName" /&gt;&lt;/td&gt;              
            &lt;/tr&gt;   
&lt;/div&gt;      
&lt;td&gt;&lt;a href="#editCategory" id="cat"  onclick="editCategory('p1')"&gt;edit&lt;/a&gt;&lt;/td&gt;
</code></pre>

<p>I am getting following error on running this code -</p>

<pre><code>Message: 'ceName' is null or not an object
</code></pre>

<p>Can someone please tell me what is the issue here?</p>
