It is necessary to make a small console, send entered by the user should by clicking on the enter. There is such a code
$("#consoleForm").keypress(function(event){//<input type="text"> if(event.keyCode === 13){ //Остальной код } }); But when you click on the enter page reloads. How to stop reboot? PS This <input type = "text"> remembers what was entered into it and throws out a hint how to remove it?
return false;2.autocomplete="off"- Igor