toLowerCase() reversing text

by professorsamoff

HTML

<div id="user" contenteditable="true"></div>

CSS

#user {
    background: white;
    padding: 1em;
}

JavaScript

$(document).ready(function() {
    $('#user').bind('keyup', function() {
        $(this).text($(this).text().toLowerCase());
    });
});