我有一个Java脚本代码将在一个形式JavaScript表单属性无效错误
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;........
我的JSP是设置一些值 -
<form id="productManager" name="productManager" action="/product/" method="post">
<div id="editCategory">
<tr>
<td style="font-weight:bold;">Category Name</td>
<td><input type="text" id="ceName" /></td>
</tr>
</div>
<td><a href="#editCategory" id="cat" onclick="editCategory('p1')">edit</a></td>
我正在运行这段代码下面的错误 -
Message: 'ceName' is null or not an object
有人可以告诉我这里有什么问题吗?
This Works ....感谢您的帮助 – Sachin 2012-01-27 18:16:35