Default Input Box Value


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your 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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.