I am trying to send text messages on whatsapp web version on chrome. (www.web.whatsapp.com)
This is the code:
$(".input").on("keypress",function(e){ if(e.which == 32 || e.which == 13){ alert('msg sent')}; });
you have to compare == where as you are assigning =