Text Area

by ethan_selzer

HTML

<textarea></textarea>
<button>Remove</button>

CSS

textarea {
    width: 800px;
    height: 480px;
    outline: none;
    font-family: Monaco, Consolas, monospace;
    border: 0;
    padding: 15px;
    color: hsl(0, 0%, 27%);
    background-color: #F6F6F6;
}

JavaScript

$("button").click(function() {
    $("textarea").val(
    $("textarea").val().replace(/[^\u0000-\u007E]/g, ""));
    $("textarea").focus()[0].select();
});