怎么用JS把DIV表单的value传递给input表单的value

2025-01-07 06:39:47
推荐回答(1个)
回答1:

先给input加个ID,比如:id="mypwd"
直接赋值:
document.getElementById('mypwd').value = document.getElementById('idDiv_PWD_PasswordExample').innerHTML;