title: Improve the script: hide input if has value and show div with text / get value and show div with text
body: <p>I have a script which do the following things:</p>
  
  <p><a href="http://jsfiddle.net/KVDBB/" rel="nofollow">http://jsfiddle.net/KVDBB/</a></p>
  
  <p>-Value attribute of input field can be blank - after entering showing div with change button</p>
  
  <p>-Input already has some value before the page loads - then it shows the div with change button</p>
  
  <p>But the problem is that it uses replaceWith function and replaces the input - while it`s needed to submit the form. </p>
  
  <p>Please help to improve the script for it just to hide input and not replace it.</p>
  
  <p>Thanks in advance!</p>