-1

at the moment whatever you put into my input will appear below what i need is for the result to show the input backwards. e.g "1234" to be shown "4321"

<body>

    <input id="Number">

    <button onclick="Rev()">Reverse</button>

    <p id="paste"></p>

</body>

<script>
function Rev() {
var enter = document.getElementById("Number").value;
document.getElementById("paste").innerHTML = enter;
}
</script>
Mikhail Zhuikov
  • 1,213
  • 2
  • 9
  • 19

1 Answers1

1

Just to show you can use direction: rtl:

input {
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
}
<input value="1234" />
kizoso
  • 1,216
  • 2
  • 15
  • 30