I tried:
$(\'input\').keyup(function() { $(this).attr(\'val\', \'\'); });
but it removes the entered text slightly after a letter is enter
$('input').keydown(function(e) { e.preventDefault(); return false; });