bootstrap-maxlength
bootstrap-maxlength copied to clipboard
allowOverMax is NOT working
This is the only reference in code: if (options.customMaxAttribute && !options.allowOverMax) { var custom = currentInput.attr(options.customMaxAttribute); if (!max || custom < max) { max = custom; } } It only replace the maxlength attribute for the custom attribute name. I think that the usefull thing is that the maxlength is only informative when you set allowOverMax to true.
it has never been working for me either.
Unless you remove the native form validation you can't use the form validation attributes on inputs (such as maxlength
) because the browser is going to stop you from inputting more values.
See this example: https://jsbin.com/mijanixivi/edit?html,output