Skip to content

Instantly share code, notes, and snippets.

@anneallen
Created January 17, 2016 21:14
Show Gist options
  • Save anneallen/3829bb361fb38ff68fe8 to your computer and use it in GitHub Desktop.
Save anneallen/3829bb361fb38ff68fe8 to your computer and use it in GitHub Desktop.
Generic Placeholder Form
<form action="#" method="post">
<input type="text" tabindex="500" value="NAME" onblur="if(this.value == '') { this.value='NAME'}" onfocus="if (this.value == 'NAME') {this.value=''}" name="name" id="input-name">
<input type="text" tabindex="501" value="EMAIL" onblur="if(this.value == '') { this.value='EMAIL'}" onfocus="if (this.value == 'EMAIL') {this.value=''}" name="email" id="input-name">
<input type="submit" tabindex="502" value="Subscribe" id="input-submit" name="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment