Event for user pressing enter in a textbox

to make event when click to any input you can use :

   $('textarea').keyup(function(e){
     if(e.keyCode == 13)
     {
         // code here
     }
   });
   $('textarea').keyup(function(e){
     if(e.keyCode == 13)
     {
         // code here
     }
   });
  1. <code>
  2. $('textarea').keyup(function(e){
  3. if(e.keyCode == 13)
  4. {
  5. // code here
  6. }
  7. });
  8. </code>
<code>
   $('textarea').keyup(function(e){
     if(e.keyCode == 13)
     {
         // code here
     }
   });
</code>

Popular posts from this blog

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

C# Crop white space from around the image

The specified version string contains wildcards, which are not compatible with determinism.