Initialize an input (type="text") with the value of another input (type="hidden")? [closed]
Cannot use onload on the body tag.
<script>
window.onload = function() {
document.getElementById('id1').value = document.getElementById('id2').value;
}
</script>
精彩评论