How to combine keypress & on click function in JavaScript?
<p>I have the following two functions:</p>

<pre><code>$("input").keypress(function(event) {
   if (event.which == 13) {
   //code        
   }       
});

$('#login_submit').click(function () {        
   //code                    
});
</code></pre>

<p>The code which is being used in the functions are EXACTLY the same code, basically code dublication. So i was wondering if there is a way to combine these functions with an OR statement??</p>
