<td input type = "text" width="4%" align="center"> <strong>种类</strong>
</td>
<td width="4%" align="center">
<strong>任务号</strong>
</td>
<td width="4%" align="center">
<strong>工装号</strong>
</td>
<td width="4%" align="center">
<strong>型别</strong>
</td>
下面对应LIST
<td>
<bean:write name="list" property="kind" />
&nbsp;
</td>
<td>
<bean:write name="list" property="id.rwh" /> &nbsp;
</td>
<td>
<bean:write name="list" property="id.gzh" />
&nbsp;
</td>
<td>
<bean:write name="list" property="xb" />
&nbsp;
</td>
查询出来放在里面是不可编辑的 怎么才能变成可编辑的,我改成种类那样也不行啊
<td input type = "text" width="4%" align="center"> <strong>种类</strong>
</td>

解决方案 »

  1.   

    学学jQuery实现动态修改HTML的Document,不难
      

  2.   

    哈哈,我恰好看过此问题的教程,jquery实现的,传智播客上就有
      

  3.   

    http://blog.sina.com.cn/s/blog_6145ed810100e2id.html
    这就是jquery实现可编辑表格的博客...
    楼主直接把此文的两个JS脚本导进去,看着用吧
      

  4.   


    为什么我按上面博客写的弄的 还是不能动态修改呢 是不是JSP上面还需要添加些什么代码呢
      

  5.   

    <td input type = "text" width="4%" align="center"> <strong>种类</strong>
    </td>
    <td width="4%" align="center">
    <strong>任务号</strong>
    </td>
    <td width="4%" align="center">
    <strong>工装号</strong>
    </td>
    <td width="4%" align="center">
    <strong>型别</strong>
    </td>
    下面对应LIST
    <td>
    <bean:write name="list" property="kind" />
    &nbsp;
    </td>
    <td>
    <bean:write name="list" property="id.rwh" /> &nbsp;
    </td>
    <td>
    <bean:write name="list" property="id.gzh" />
    &nbsp;
    </td>
    <td>
    <bean:write name="list" property="xb" />
    &nbsp;
    </td>
    查询出来放在里面是不可编辑的 怎么才能变成可编辑的,我改成种类那样也不行啊
    <td input type = "text" width="4%" align="center"> <strong>种类</strong>
    </td>
    我就按上面的方式查询出数据 我就想把这几列变成在表单里变成可编辑的 怎么弄啊 有没有人知道啊
      

  6.   

    <input type="text" name="" value="<bean:write name="list" property="xb" />"/>
    .....