First Try at Using jQuery: Stuck on get() Error
<p>I'm trying to make a dropdown suggestion box using jQuery. I have a function that looks like this:</p>

<pre><code>function onChoiceSelected(index){
    var item = $("#suggestionBox li").get(index);
    alert("inner html: "+item.html());
    currentSuggestionInput.val(item.html());
    hideSuggestions();
}
</code></pre>

<p>For some reason, that get function is stopping execution. If I replace it with <code>.first()</code>, for example, it all works fine. </p>

<p>What am I doing wrong?</p>

<p><strong>Follow up question:</strong></p>

<ul>
<li>Is there some way to see what errors are happening, rather than just having silent failure? </li>
<li>I'm running firebug, but I never see any errors or anything like that. Anyone know a good article about getting a proper development environment set up for this stuff?</li>
</ul>
