Closed dani3l3 closed 2 years ago
Hi there, most likely I am doing something wrong... I have the following:
`
</div>`
and then in JS I load emojionearea on the textarea:
$(".message-input").emojioneArea({ placeholder: "Scrivi un messaggio...", searchPlaceholder: "Search" });
then I have a handler for the button click
// send message $(".send-btn").on('click', function(){ var message = $(".message-input").val();
...then other non relevant code that sends the message... ...once it's sent, I attempt to clean up the textarea:
$(".message-input").val(""); }
which was working before I added emojionearea.... BUT since I bound emojionearea to the textarea, the .val("") seems to do nothing anymore....
Any idea?
I answer myself:
$('.emojionearea-editor').text("");
Hi there, most likely I am doing something wrong... I have the following:
`
I answer myself:
$('.emojionearea-editor').text("");