Reverse Text

Reverses a text entered into input box.

by Uzair Mehmood

HTML

<label for="input">Text to inverse</label>
<input type="text" id="input" />
<hr>
<p id="output"></p>

JavaScript

$("#input").change(function () {
    $("#output").text($(this).val().split("").reverse().join(""));
});