Posted By

temanuel on 11/25/13


Tagged

input replace textarea area swap Disappearing Disappears-on-Focus pre-filled prefilled


Versions (?)

Default Input Box Value


 / Published in: HTML
 

  1.  
  2. <input type="text" class="search_box" onfocus="if(this.value=='Search') this.value='';" onblur="if(this.value=='') this.value='Search';" name="search" value="Search" />
  3.  
  4.  
  5. <textarea class="formarea" onfocus="if(this.value=='Briefly explain your reason for seeking therapy') this.value='';" onblur="if(this.value=='') this.value='Briefly explain your reason for seeking therapy';" name="comments">Briefly explain your reason for seeking therapy</textarea>

Report this snippet  

You need to login to post a comment.