$("#todoSubmitButton").click(function(e) {
  e.preventDefault();
  $.post("/eval", { evalInput: $("#evalInput").val() } ,
                    function(response) {
    $("#display").html(response);
  })
    .done(function() {
      $("#evalInput").val("");
    });
});
function doEval(e) {
  $.post("/eval", { evalInput: $("#evalInput").val() } ,
                    function(response) {
    $("#display").html(response);
  })
    .done(function() {
      $("#evalInput").val("");
    });
}
$("#todoSubmitButton").click(function(e) {
  e.preventDefault();
  doEval(e);
});
$('#evalInput').keydown(function(e) {
  if (e.keyCode == 13) {
    doEval(e);
    return false;
  }
});
Add ability to submit input with Enter key.
Add ability to submit input with Enter key.
