0

how can I controlling in (html element ) by (js)

25th May 2018, 11:35 AM
Ali Abdelrahim Alfaki Mohamed
Ali Abdelrahim Alfaki Mohamed - avatar
5 Respuestas
+ 4
Stop Ana Top you should have made your question clearer. try this:: document.getElementById("a").oninput= function(){ document.getElementById("b").innerHTML=this.value; }
25th May 2018, 12:06 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 3
what do you mean for "controlling"? You have more way to get DOM element references (with document.getElementById, .getElementsByTagName, .querySelector etc)
25th May 2018, 11:40 AM
KrOW
KrOW - avatar
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
25th May 2018, 11:48 AM
Ali Abdelrahim Alfaki Mohamed
Ali Abdelrahim Alfaki Mohamed - avatar
25th May 2018, 12:18 PM
KrOW
KrOW - avatar
0
thanks
25th May 2018, 12:27 PM
Ali Abdelrahim Alfaki Mohamed
Ali Abdelrahim Alfaki Mohamed - avatar