I'm a java developer struggling with jQuery
- by Mustafa
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 XaveirAsif Garhietc for 'A'Now what i want is on clicking Aditi Xaveir, the page should submit to AditiXaveir's profile page.How do i do that?