I have `onclick` two times on same button, button for some the second one does not seem to work.
What do i need to do inorder to make both of them work.

```
<button type="submit" style="display:none;" id="done">Ok</button>

```

**1st event**

```
$(document).ready(function () {
  $('#done').click(function () {

  });
});

```

**2nd event**

```
$(function () {
  $(document).on("click", "#done", Done);
});

function Done() {
  $.ajax({

  });
}

```