Question: I'm working on a asp.net page and I have several buttons in my page, some of them are asp.net buttons, other are HTML `input[type=button]` elements. HTML buttons are used to make AJAX calls.

When the user press ENTER I need to set as default button one of these HTML buttons, but at the moment the first button in the page is trigged.

Is there a way to set a plain HTML button as default on my form?

Answer: 
I'm using JQuery, so I modified the code in the **Mohit Pandey** answer:

```
$("body").keypress(function (event) {
    if (event.which == 13) {
        event.preventDefault();
        // my function
    }
});

```
Can you not put the form inside a panel and use the defaultbutton property

```
<asp:Panel runat="server" DefaultButton="btnSomething"> 
...
</asp:Panel>

```