Open kickbox opened 6 years ago
same here. $('input').va(111)
nothing changes.
or maybe , how to destroy existing emojiarea so i can set value and recreate it.
The value is changed but not the display.. how can we refresh it ?
i am using this function function setEmojiInput(id, val) { var inp = document.getElementById(id); var divCont = inp.nextElementSibling; inp.value = val; divCont.innerHTML = val; }
You can also do it using jQuery Set both values on textarea field and emoji picker field: $('#textarea-id').val(value); $('#textarea-id').next().html(value);
I want to dynamically pass different values to the textarea. But when I pass the values to the textarea, nothing changes in the frontend.
Is there some kind of binder between the original textarea and the div element(created by emojij-picker)?