- 1

что не так?

<script type="text/javascript"> Function htr(){ var jk1=document.getElementById("jht").value; var jk2=document.getElementById("hhyt"); jk2.value=jk1.value; </script> <form onsubmit="htr()"> <input type="text" id="jht" value=""/> <input type="text" id="hhyt" value=""/> <input type="submit"/> </form>

18th Mar 2018, 9:39 AM
undefined
undefined - avatar
3 Answers
+ 3
JS code needing to access html element must be localized after the targeted elements in your source code (or execution delayed since the elements haven't been parsed). Anyway, use english to write your questions/comments: this app' have world users, and the only common language is english (as english is almost required to learn many programming languages)...
18th Mar 2018, 10:17 AM
visph
visph - avatar
+ 2
I don't understand, and have only guessed what's your problem by checking your code sample. And by the way, you have to make the effort to use google translate rather than us ( most of us still make the effort to use english, even if this is not our natural language ) ^^
18th Mar 2018, 5:35 PM
visph
visph - avatar
+ 1
мне 11 лет и я в 4 классе(учу английский)
18th Mar 2018, 5:27 PM
undefined
undefined - avatar