Getting event target

Click the flower...

Target element ID appears here

The jQuery Code START
    
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
      $(function() {
          $('#figure1').bind('click', clicker);
      });

      function clicker(event) {
          $('#p1').text("ID of target element: " + event.target.id);
      }
    </script>
    
    <style type="text/CSS">
        <!--
        .code { color: red; }
        .back { background-color: yellow; }
        -->
   </style>
  </head>

  <body>
    <h1>Getting event target</h1>
    <h1>Click the flower...</h1>
    <img id="figure1" src="Image1.jpg" />
    <p id="p1"></p>