var data = [
{
value: 'Google',
url: 'http://www.google.com'
},
{
value: 'StackOverflow',
url: 'http://www.stackoverflow.com'
}
];
$("input").autocomplete({
source: data,
select: function(event, ui) {
window.location = ui.item.url;
}
});
{
value: 'Google',
url: 'http://www.google.com'
},
{
value: 'StackOverflow',
url: 'http://www.stackoverflow.com'
}
];
$("input").autocomplete({
source: data,
select: function(event, ui) {
window.location = ui.item.url;
}
});
No comments:
Post a Comment