高手请进

GeekZFZ GeekZFZ 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
请教一下:怎么在struts中相同文本框中,填写一个文本框后,其他相同属性的文本框自动填值,要一个方法搞定,我在表单中用<html:text property="sortdetailname" size="20" onblur="autoEdit(this,this.value);"/>
再用方法:
function autoEdit(element,value){
document.getElementById('allSortInforForm').elements[element].value=value;
}
allSortInforForm是form的id属性。
如何传this对象?
...全文
评论 5
收藏 已收藏
分享
返回顶部
GeekZFZ
Web 开发 81,107 成员 341,720 内容