M a java developer struggling with jQuery :(

Posted by Mustafa on Stack Overflow See other posts from Stack Overflow or by Mustafa
Published on 2010-03-28T10:28:35Z Indexed on 2010/03/28 10:33 UTC
Read the original article Hit count: 430

Filed under:

Guys i am very new to jQuery.
I have started using the auto complete feature.
What i want is while i click on an item provided by the auto complete the page should submit to another page.

I am using :

$().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
        });
    });



And this gives me good data like :
Aditi Xaveir
Asif Garhi

etc for 'A'

Now what i want is on clicking Aditi Xaveir, the page should submit to Aditi
Xaveir's profile page.

How do i do that?

© Stack Overflow or respective owner

Related posts about jQuery