I want the enter key to save the data in the database, but whenever I press it, it breaks and creates a second line, I just want it to stay on the same line
<div id="editable" contentEditable="true">Press enter now</div>
This is a jQuery solution.
$('input').on('keypress', function(e){ if(e.keyCode == 13){ e.preventDefault(); }
});
Source: https://habr.com/ru/post/1497586/More articles:python shared file sharing file in memory - pythonDetecting TLS Encryption Used in an Incoming HTTPS Request on IIS 8 - sslHow can I get Clojure to load a project .clj file for a project when running REPL? - clojureHow to implement onItemLongClickListener and onItemClickListener event in a list bar on Android? - androidhow to deactivate an input event (enter without shift + input) in contenteditable - jqueryAction semantics and operational semantics in UML - umlPython design concepts - pythonWhat is the best way to read files from a directory using PHP - glob () or scandir () or readdir ()? - directoryhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1497590/use-handlebars-to-generate-css&usg=ALkJrhiRrYrT3nlHcjnNQmM399-acTKQQgCommon- Lisp: how to sort string characters? - common-lispAll Articles