<!DOCTYPE html>
<html>
<head>
<title>jQuery</title>
<meta charset="utf-8" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("input[name='addbitch']").on("click", function() {
var comment = $("textarea[name='textcommenta']").val();
$("<p>-" + comment + "</p>").appendTo("#comments");
$('#addbitch').val('');
});
$("input[name='deletebitch']").bind("click", function() {
$("#comments").empty();
});
$("#addbitch").on("keyup", function(e) {
if (e.ctrlKey && e.keyCode == 13) {
$("input[name='addbitch']").trigger( "click" );
}
});
});
</script>
</head>
<body vlink="blue">
<div id="comments"></div>
<form name="mycomment" action="#" method="post">
<textarea name="textcommenta" cols="40" rows="10" value="" id="addbitch"></textarea>
<br/>
<input type="button" name="addbitch" value="Отправить" />
<input type="button" name="deletebitch" value="Удалить комментарии" />
</form>
</body>
</html>