Disable New Line in Textarea when Pressed ENTER

Disable New Line in Textarea when Pressed ENTER

<script>
$(document).ready(function(){
$(“textarea”).keydown(function(e){
if (e.keyCode == 13 && !e.shiftKey)
{
// prevent default behavior
e.preventDefault();
//alert(“ok”);
return false;
}
});
});
</script>

Disable New Line in Textarea when Pressed ENTER
READ MORE ARTICLES.
Blogspot Articles