Scroll to top

Disable New Line in Textarea when Pressed ENTER

Author
Conversation
Share on facebook
Share on google
Share on twitter
Share on linkedin
<script>
$(document).ready(function(){
$("textarea").keydown(function(e){
if (e.keyCode == 13 && !e.shiftKey)
{
  // prevent default behavior
  e.preventDefault();
  //alert("ok");
  return false;
  }
});
});
</script>

Recent Posts

envato iconUpwork Profile