Jump to content

tw3editbox - maxlength issue


Recommended Posts

I want an editbox that only allows entering of numbers. To do this I set inputtype to itNumber.

 

This works but I get annoying spinners added to teh editbox so I put the following into the CSS

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

All good so far expect that MaxLength is now completely ignored. No matter I thought I would set MaxValue instead. e.g., set it 9999

However, both MaxLength and MaxValue are ignored and the user can type in whatever ever number with as many characters as they like.

Could this be remedied please?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...