jsp里面怎么实现点击按钮就把按钮的内容显示在文本框里

2025-02-23 17:22:22
推荐回答(1个)
回答1:

用jquery:
funtion showtag(this){
$("#tag_name1").val(this.value);
}
不用jquery:
funtion showtag(this){
document.getElementbyid("tag_name1").value=this.value;
}