Well it's the following, I have a chat on my site, the chat has a text field and a send button that is to send. In other words, the person types in the text and then has to click the send.
I'd like to know how you would do that by clicking enter, submit was sent. That is, you do not have to click on the submit button to send, but just hit enter to send the message.
Submit code:
<button class="btn btn-primary" type="submit" data-loading-text="<i class='fa fa-spinner fa-spin'></i> WAIT..." id="send_massage" style="margin-right:6px;">SEND</button>