I'm a java developer struggling with jQuery
<p>Guys i am very new to jQuery.<br/>I have started using the auto complete feature.<br/>What i want is while i click on an item provided by the auto complete the page should submit to another page.<br/><br/>I am using :<br/></p>

<pre><code>$().ready(function() {
        $("#name").autocomplete("contacts.jsp");
        $("#name").result(function(event, data, formatted) {
            if (data)
                $(this).parent().next().find("input").val(data[1]);
        });
        $("#name").setOptions({
        mustMatch : false,
        max: 8,
        onClick:selectItem,
        autoFill: false
        });
    });
</code></pre>

<p><br/><br/>
And this gives me good data like :<br/>Aditi Xaveir<br/>Asif Garhi<br/><br/>etc for 'A'<br/><br/>Now what i want is on clicking Aditi Xaveir, the page should submit to Aditi<br/>Xaveir's profile page.<br/><br/>How do i do that?</p>
