79527465

Date: 2025-03-22 12:55:10
Score: 1
Natty:
Report link

function MyFunction(){
    var value = document.getElementById("Test").textContent; 
  document.getElementById("test2").value=value;
}
<p id="Test"> Is this what you want ? </p>
<button type="button" onclick="MyFunction()">Click</button><br><br>
<input type = "text" id="test2" name "teste2">

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anton Stankovic