I’ve noticed that when I switch form setting to “post” it automatically enables sending the form by hitting enter on the keyboard, which I don’t like. I’ve tried including this bit of JS
$('myform').submit(function() {
return false;
});
I’ve changed ‘myform’ to my form ID but unfortunately no luck.
Actually I’ve just realised it is a bad solution
I didn’t notice at first but it actually prevents the form sending even by mouse clicking on the send button. I’m using this code instead now, It works but I’d love to be able to create new paragraphs within text area by hitting enter, I only want to avoid sending the form by enter. Anyone please?