I tried:
$(\'input\').keyup(function() { $(this).attr(\'val\', \'\'); });
but it removes the entered text slightly after a letter is enter
For a css-only solution, try setting pointer-events: none on the input.
pointer-events: none