[Solved] Click the button and it sends that info into another box on the page [closed]


Using html, css and jQuery you can get your desired output.
Please check below code.

function getHtml() {
  var test = $("#input").text();
  $("#output").show();
  $("#remove").show();
  $("#output").text(test);

}

function remove() {
  $("#output").hide();
  $("#remove").hide();

}
#output {
  display: none;
}

#remove {
  display: none;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="input">
  Input: welcome
</div>
<button onClick="getHtml()">Click</button>
<div id="output">
</div>
<button id="remove" onClick="remove()">Remove</button>

solved Click the button and it sends that info into another box on the page [closed]