Rails: getting a javascript function to work onchange
===

In my view, I have the following:

    <%= select("event", :event_id, events_ids_titles_hash, { :include_blank => true, :onchange => "alert_me_test()" }) %>

alert_me_test() is:

    <script type="text/javascript">
      function alert_me_test()
      {
          alert ("this is a test")
      }
    </script>

The dropdown is appearing fine, but when I select from it, nothing happens. I'm expecting an alert box with "this is a test" in it.