Clearing a TextArea

Shows .text('') working to clear a constantly updated text area successfully

HTML

<a href="#" onClick="doClear(); return false;">Click here to clear</a>

<br>
<br>
<textarea id="mytext">something</textarea>

JavaScript

function doClear() {
    $('#mytext').text('');
}

function callee() {
    var time = (new Date()).getTime();
    $("#mytext").append("\nAppended at " + (time * 1000));
}
self.setInterval(function () {
    callee()
}, 500);