jQuery: Searching an array

"banana" is at index
"strawberry" is at index
"tangerine" is at index


The jQuery Code START
    
    <script type="text/javascript" src="./jquery-1.5.1.js"></script>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
  
    <script type="text/javascript">
      $(document).ready(function()
      {
    
        var array = ["strawberry", "vanilla", "chocolate", "banana"];

        $("span:eq(0)").text($.inArray("banana", array));
        $("span:eq(1)").text($.inArray("strawberry", array));
        $("span:eq(2)").text($.inArray("tangerine", array));
      });
    </script>
  </head>

  <body>
    <h1>jQuery: Searching an array</h1>
    <div>"banana" is at index <span></span></div>
    <div>"strawberry" is at index <span></span></div>
    <div>"tangerine" is at index <span></span></div>
    
    </body>
</html>