Javascript call a function on Enter button press


Javascript call a function on Enter button press. Like in login ui when you type password then press enter button it will log in.

 $('#id_inputPassword').on('keydown',function(e){  
   e.stopPropagation();  
   if (e.keyCode == 13)  
   {  
     // call your function 
   }  
 });  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report