title: Overwrite textbox value
body: <p>I need to overwrite the value in the textbox.</p>
  
  <p>I have a form and for some reason I need to completely overwrite the value in the text box.
  For example, the text box with id 'city' and the default value is 'Mumbai'.</p>
  
  <pre><code>&lt;input type="text" id="city" value="Mumbai"&gt;
  </code></pre>
  
  <p>But if the user changes it to some other city, it should completely overwrite or select the whole word thouroughly, without having to press backspace for 6 characters.</p>
  
  <pre><code>[https://stackoverflow.com/questions/10761508/change-html-textbox-overwrite-instead-of-insert-as-user-types][1]
  </code></pre>
  
  <p>The above link shows overwriting in text box. I want to delete the whole value in one go.</p>