I am using Twitter\'s typeahead.js (https://github.com/twitter/typeahead.js/) on an input field which is pre filled from a query string. After loading the page, i\'d like to
$(".typeahead").typeahead('lookup').focus();
triggers with existing value of input. you can change the value in advance of course