Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeffrey Phillips Freeman
agusmakmun-github-io
Commits
170863a9
Commit
170863a9
authored
Apr 26, 2016
by
agusmakmun
Browse files
Add post
parent
065237ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
_posts/2016-04-26-javascript-validator-for-input-number.markdown
View file @
170863a9
...
...
@@ -11,7 +11,7 @@ For example result of it:
<iframe
width=
"100%"
height=
"350"
src=
"//jsfiddle.net/agaust/3qz105nn/embedded/html,result/dark/"
allowfullscreen=
"allowfullscreen"
frameborder=
"0"
></iframe>
tutorial above, when you can not directly add the attribute inside html tag.
but if you can add it, you can following this bellow:
but if you can add it, you can following this
tutorial
bellow:
{% highlight html %}
<input
id=
"id_price"
type=
"number"
min=
0
onkeypress=
"return isNumber(event)"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment