title: Prevent refresh on enter. while in input box
body: <p>Whenever input box is in focus, Enter results in page refresh. I want to prevent refresh on enter and put an event on it. Here's what i came up with, but this triggers Enter to refresh:</p>
  
  <pre><code>$(document).ready(function () {
  $("#textboxid").on('keyup', function(e){
      if(e.keyCode === 13){
          $("#textboxid").animate({
          color: '#FFF'
      }, 2000, function () {
          $(this).val('').css('color', 'black');
      }); 
      }
  });
  });
  </code></pre>