index of a selected item in a list

index of a selected item in a list

based on the code below, when a radio is clicked, how can i tell if it was the first, second, third or fourth in the list (using jquery functions, not string compares against values)?  feel like it should be obvious...

  1. <html>
  2. <head>
  3.     <script src="js\jquery-1.3.2.min.js" language="javascript" id="javascript"></script>
  4.     <script>
  5.         $().ready( function() {
  6.             $(':radio').click(function(){
  7.                 // how do i know which radio?
  8.                 alert($(this));
  9.             });
  10.         });
  11.     </script>
  12. </head>
  13. <body>
  14. <div id="whatever">
  15. <input type="radio" name="e" value="d" checked>answer<br />
  16. <input type="radio" name="e" value="b">answer<br />
  17. <input type="radio" name="e" value="a">answer<br />
  18. <input type="radio" name="e" value="e">answer<br />
  19. </div>
  20. </body>
  21. </html>