title: Fire event on hit enter and change
body: <p>I have one text box when user enter in text box and hit enter it should alert the value, and also if user change the value it should also alert. So there will be two events keypress and change. And I want call this with minimum code. no duplicate codes.</p>
  
  <pre><code>$('#txt').keydown(function (e){
      if(e.keyCode == 13){
          alert('you pressed enter ^_^');
      }
  })​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/tThq5/" rel="nofollow">Online Demo</a></p>