Skip to content

Instantly share code, notes, and snippets.

@miwebguy
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save miwebguy/9960899 to your computer and use it in GitHub Desktop.

Select an option

Save miwebguy/9960899 to your computer and use it in GitHub Desktop.
Use Pattern for Firefox input[type=number] support.
<input id="HoursEntry"
name="hours"
type="number"
pattern="[-+]?[0-9]*[.]?[0-9]+"
value="${hours}"
maxlength="5"
size="5" />
@miwebguy
Copy link
Author

miwebguy commented Apr 3, 2014

(For help, see http://html5pattern.com/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment