The enter key in this script does not click the 'new' button.
Am I missing something here?
The button:
<script>
<a class="btn btn-primary" id="new" href="@Url.Action("New", "New")">New</a>
</script>
The script:
<script>
$(document).keypress(function (e) {
if (e.which == 13) {
$("#new).click();
}
});
</script>