Skip to content
Home » Blog » How To Clear Text Field On Focus Using Javascript

How To Clear Text Field On Focus Using Javascript

  • by
  • April 10, 2017April 10, 2017

<input onfocus="this.value='';" type="text" value="Name" />

your code here

See this Stack Overflow article for more details.

Leave a Reply

Your email address will not be published.