How to identify the enter key in Javascript

<script type=”text/javascript”>
$(“#commenttext”).keyup(function(event){
if(event.keyCode == 13){
comments(‘<?php echo $play_queryres->id;?>’);
}
});
</script>

Similar Posts

2 Comments

  1. Find out enter key using JS little bit tough to do i think. But here this coding makes this very simple and easy too.

  2. Java script is the complex thing to remember at any time. Here you posting simple code to find enter key quite beautiful. such good information. Need more from you.

Leave a Reply

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