node.js - pass mongodb info to javascript function in html -


how can pass mongodb data twitter bootstrap typeahead?

this html file in have used typeahead.

<html> <head> <script type="text/javascript"> $(document).ready(function(){     $('input.typeahead').typeahead({       name: 'accounts',       local: ['audi', 'bmw', 'bugatti', 'ferrari', 'ford', 'lamborghini', 'mercedes benz', 'porsche', 'rolls-royce', 'volkswagen']     }); });   </script> </head> </html> 

my question:- in above function how can pass mongodb array above function?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -