0.0.133 add counter for feedback

This commit is contained in:
2023-09-13 12:27:53 +03:00
parent 2dc85fdb6f
commit 8539e9ce30
3 changed files with 14 additions and 12 deletions

View File

@@ -757,10 +757,10 @@ function RequestCommercialOffer (el){
function counterText(evt) {
const ta = document.querySelector('.feedback_form_message')
const counter = document.querySelector('.counter-text__current')
const text_l = evt.target.value.length
counter.innerText = text_l
const counter = document.querySelector('.counter-text__current');
const maxlength = 360;
counter.textContent = evt.value.length;
}