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
Читать далее...
Here is the full JS:
JavaScript:
Код:
((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
Читать далее...