0
how can I controlling in (html element ) by (js)
5 odpowiedzi
+ 4
Stop Ana Top you should have made your question clearer.
try this::
document.getElementById("a").oninput=
function(){
document.getElementById("b").innerHTML=this.value;
}
+ 3
what do you mean for "controlling"? You have more way to get DOM element references (with document.getElementById, .getElementsByTagName, .querySelector etc)
0
<input type="button" id="a" value="1">
<input type="text" id="b" >
I wanna if i click in a
write these value in b
0
See here https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Manipulating_documents
P.S. Bookmarks this site... its most useful
0
thanks