ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 27,208
- Points
- 823
Reputation:
I've got an add-on that is utilizing JS to count characters in a text input form, so I can display the remaining characters.
Here is the full JS:
JavaScript:
Read more
Continue reading...
Here is the full JS:
JavaScript:
Code:
((window, document) =>
{
XF.MyAddonCharCount = XF.Element.newHandler({
textInput: null,
maxLength: null,
charCount: null,
init ()
{
const textInput = this.target
const charCount = textInput.parentElement.querySelector('div.formRow-explain span')...
Read more
Continue reading...