Disable New Line in Textarea when Pressed ENTER

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

Leave a comment

Your email address will not be published. Required fields are marked *

Bitnami