We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : $val.val() undefined when input is empty. Solution:
$val.val() undefined
if (!$wrap.find('.text-limit').length) { var val = $val.val() || ''; $parent.length ? $parent.append(counterElm) : $wrap.append(counterElm); $wrap.find(settings.target).html(val.length); $wrap.find(settings.maxTarget).html('/' + maxLength); $wrap.on('keyup', settings.valName, function (e) { var input = e.currentTarget; var val = input.value; if (val.length > maxLength) input.value = val.substr(0, maxLength); $wrap.find(settings.target).html(input.value.length); }); }
The text was updated successfully, but these errors were encountered:
Issues #1 clear
4b084e4
e38718a
@azhilov thanks!
Sorry, something went wrong.
No branches or pull requests
Error :
$val.val() undefined
when input is empty.Solution:
The text was updated successfully, but these errors were encountered: