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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -