Closed share-with-me closed 7 years ago
Managed to achieve it. The class of the textarea
dynamically changes to emoji-wysiwyg-editor
. So all that was needed is $('.emoji-wysiwyg-editor').html('');
once the user sends the message. This clears out the textarea as soon as the message is sent.
Closing the issue.
I am creating a chat application. Once the user submits the message through the form, the contents of textarea are not clearing. I have tried,
$('#inputMessage).val(' ').focus()
once thesend
button is clicked by the user whereinputMessage
is theid
of textarea that lets the user type in the message and wheredata-emojiable="true"
. Following is the screenshot of application. The user has typed in the message which is also broadcasted. However, the contents of the textarea are still the same. (not clearing!)Any inputs will be highly appreciated! Thanks!