Try setting this function as the onKeyDown event for the text area:
ex: onkeydown="javascript:return fnIgnoreEnter(event);"
function fnIgnoreEnter(thisEvent) {
if (thisEvent.keyCode == 13) { // enter key
return false; // do nothing
}
}
More Related Contents:
- return statement does not work in forEach loop [duplicate]
- Adding The Anchor Text As The Title Dynamicaly
- Null error is coming in javascript
- Unescape HTML entities in JavaScript?
- Can we omit parentheses when creating an object using the “new” operator?
- Check if an element contains a class in JavaScript?
- How to automate shadow DOM elements using selenium?
- Optional Chaining in JavaScript [duplicate]
- How to prevent a click on a ‘#’ link from jumping to top of page?
- Resize jqGrid when browser is resized?
- How can I access the dom tree of child window?
- Break statement in javascript array map method [duplicate]
- How to use both onclick and ondblclick on an element?
- Dividing an array by filter function
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- What is the decimal separator symbol in JavaScript?
- context to use call and apply in Javascript?
- Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
- mailto using javascript
- HTML Input type number Thousand separator
- Cannot use `document.execCommand(‘copy’);` from developer console
- How to individually target multiple dropdowns in CSS for Dropkick Plug-in
- Trying to solve symmetric difference using Javascript
- next.js environment variables are undefined (Next.js 10.0.5)
- Directive is being rendered before promise is resolved
- IE has empty document.referrer after a location.replace
- How to register multiple external listeners to the same selection in d3?
- NodeJS: How to get the server’s port?
- Is there a tool to remove unused methods in javascript?
- Not allowed to load local resource: file