A plugin for dynamic decimal max length auto-configuration.
CDN URL:
https://cdn.jsdelivr.net/gh/scintilla0/jquery.maxlength@latest/jquery.maxlength.js
CDN URL(min.js):
https://cdn.jsdelivr.net/gh/scintilla0/jquery.maxlength@latest/jquery.maxlength.min.js
- [data-sum]... event now can work properly with no [data-max-length].
- [data-sum]... event now can work properly on non-input elements.
- [data-sum]... event now can work properly when elements are appended after document is ready.
- [data-sum]... event now can be chain-triggered.
- Add [data-percent].
- Remove unused variables and functions.
- $.NumberUtil.setValue() cannot trigger jQuery change event.
- Add $.NumberUtil.areSameNumber().
- Add [data-product], [data-difference], [data-quotient].
- [data-sum] causing permanent cycle triggering event fixed.
- [data-sum] event now automatically round and crop out the integer part that exceed the length limit.
- Minor modification of variable names.
- Use ES6 template strings.
- Minor optimization.
- Minor optimization.
- Maintain cursor position when focusing on an input element and then starting to select its characters in a single mouse click action.
- Major optimization, initialization execution efficiency is greatly increased.
- Maintain cursor position when focus on an input element.
- Maintain same globalization option in initialization process.
- Minor optimization.
- Add number format support of Slovenian(sl) and French(fr) locale. (Contributor: ahotko)
- Minor optimization.
- Minor optimization.
- Add number format globalization support.
IMPORTANT
Change attribute name from[data-enable-highlight-minus]to [data-highlight-minus], apologize for the inconvenience.- [data-highlight-minus] can recognize hex without '#' now, but not recommended.
- Add support for jQuery's no Conflict mode. (Contributor: Squibler)
- Change NumberUtil() to an extended object of jQuery: $.NumberUtil.
- Remove unused exports of the internal utils.
- NumberUtil().quotient() miscalculation fixed.
- Optimize for min.js.
- Smart minus unable to trigger change event fixed.
- [data-sum] function unable to refresh sum input element fixed.
- Initial release