title: How to prevent user from typing in text field without disabling the field?
body: <p>I tried:</p>
  
  <pre><code>$('input').keyup(function() {
  
     $(this).attr('val', '');
  
  });
  </code></pre>
  
  <p>but it removes the entered text slightly after a letter is entered. Is there anyway to prevent the user from entering text completely without resorting to disabling the text field?</p>