开发者

Initialize an input (type="text") with the value of another input (type="hidden")? [closed]

开发者 https://www.devze.com 2023-02-13 20:21 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years开发者_StackOverflow社区 ago.

Cannot use onload on the body tag.


<script>
    window.onload = function() {
        document.getElementById('id1').value = document.getElementById('id2').value;
    }
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消