Skip to content

When specifying the maxlength of a field, add attribute maxLength to the element #200

Description

@contactmatts

How would i do this in Knockout validation? When specifying the maxLength of a input through the validation, it will properly validate, but I think it'd be a good idea to add the maxLength attribute to the HTML element itself, which would prevent (in realtime) the user from ever going over the maxLength. (http://www.w3.org/TR/html401/interact/forms.html#adef-maxlength)

This functionality is not build in, so is there any way for me to add some customization to KO validation to achieve the ability to add the maxLength attribute to an input?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions