Pages

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

Search This Blog