So, I'm trying to use a javascript shortcut to do a simple task on whatsapp web. I'm building ready messages for responding to my contacts, to run it, I load the whatsapp page and, after injecting jquery, I run:
$('.input').html("test")
The input is now set with the "test" message, but when I go back to the window and press "enter" the message won't send. Now if I type anything on the field, it will then be able to submit by pressing enter.
My question is: how to send an event to the .input div that actually simulates the text being typed on the form?