JQuery, ASP:Gridview and AutoComplete - Need Links for Autocomplete values
<p>I have an ASPX page that creates a Gridview. My JQuery function pulls values from the Gridview data to populate my JQuery autocomplete source. All works fine with this. Now I want to have my autocomplete values go to a link when they are clicked. That link is also in the Gridview where I use text() to get the text value. (I search my Gridview for links containing "ModelDetail" and store the text to an array) Do I need a JQuery 2 dimensional array? If so, how can I do this? Here's my code:
</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    $(document).ready(function() {

        var modelnames = new Array();
        $('#ctl00_body_modellistGrid a[href*="ModelDetail"]').each(function() {
            modelnames.push($(this).text());
        })


        $("input#autocomplete").autocomplete({
            source: modelnames
        });

    });

&lt;/script&gt;
</code></pre>

<p>Thanks in advance!
Bob</p>
