Javascript namespace issue, how do i get this value within this function call
<p>im just not sure how to get the desired value within this function Thanks!</p>

<pre><code>temp = exotics[i].split(',');

if ($.inArray(temp[0], tblProbables) != -1) {
    item = $("&lt;li&gt;&lt;a id='" + temp[0] + "'" + "href='#' &gt;" + temp[1] + "&lt;/a&gt;&lt;/li&gt;");
    item.click(function () { GetProbable(temp[0]); });
}
</code></pre>

<p>temp[0] is blank because it doesn't exist within that function space.... so how can i setup the click event so that it calls the function with the proper param?</p>
