jquery grabbing different id in document.ready
<p>I am writing a small script that will query a database for a title and whilst you enter your title it brings back suggestions.</p>

<p>I have found an example and managed to create one as below:</p>

<pre><code>&lt;head&gt;
&lt;title&gt;Match Form/title&gt;
&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
&lt;script type='text/javascript' src='jquery.autocomplete.js'&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" /&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function() 
    {

        $("#course").autocomplete("get_title_list.php", {

            width: 260,
            matchContains: true,
            mustMatch: true,
            selectFirst: false
        });
        $("#course").result(function(event, data, formatted) {
            $("#course_val").val(data[1]);
        });
    });

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

<p>That then works and allows to print out my result on the page, my next task is to have multiple text boxs along multiple titles and allow someone to search the database and then return the results to the allocated box.</p>

<p>I know id need to assign each box an ID and then select that id in the jquery which is where i am struggling.
Any help would be greatly appreciated!</p>
