title: How to disable an input type=text?
body: <p>I want to disable writing in an input field of type <code>text</code> using JavaScript, if possible.
  The input field is populated from a database; that is why I don't want the user to modify its value.</p>