I'm trying to execute 'select' function via onclick but it doesn't work.

```
<script type="text/javascript">
  function select() {
      document.getElementById('select').disabled = true;        
  }
</script>

<input type="button" id="select" value="OK" onclick="select()">

```