Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$('#multiple-datasets .typeahead').on('typeahead:selected',function(event, item, name){
// item is { name: 'Descartes' }
// name is 'philosophers'
var path = name+'/'+item.name;
url = 'http://localhost:3000/'+path;
window.location = url;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment