Button script help

Button script help

Have a button with id = CLOSE
  1. <li><a input type="button" value="Close Net" id="CLOSE"></a></li>

Script to run a function when the button is clicked

  1. <script>
        $(function () {
        $("CLOSE").click(function () {
        // do some stuff 
        )}};
    </script>

The problem is that the function with // do some stuff is executed whenever the page loads.  What am I doing wrong here?

Thanks for any help.