Technology Blog Freebies Web Development SEO CSS HTML5 Javascript Internet things and more
Pages
Home
What I do
Max length input validation inline with javascript
<
input
type
=
"text"
class
=
"form-control"
id
=
"txtProjectCreateProjectCode"
placeholder
=
"Project Code"
required
oninput
=
"if (this.value.length > 50) this.value = this.value.slice(0, 50);"
name
=
"CreateProject.Code"
value
=
""
>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search This Blog
No comments:
Post a Comment