hhhhh8321012 2012-09-08 16:38
浏览 536
已采纳

jstl怎么和js交互??

迭代代码如下:







${entry.content} 回复
/c:forEach

我要怎么才能点击“回复”通过js方法:getRMouse()得到相应行数的内容${entry.content }传到文本框 txtname中显示呢?
或者有其他的方法把值传到文本框txtname中??

  • 写回答

3条回答 默认 最新

  • iteye_5246 2012-09-08 16:44
    关注

    [code="html"]

    ${entry.content} 回复

    /c:forEach

    function getRMouse(param) { document.getElementById("txtName").value=param; }

    [/code]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?